jet.Qubit¶
-
Qubit
(data: Optional[numpy.ndarray] = None) → jet.state.Qudit[source]¶ Constructs a qubit state using an optional state vector.
- Parameters
data (np.ndarray or None) – Optional state vector.
- Returns
Qudit with the specified state vector.
- Return type
code/api/jet.Qubit
Download Python script
Download Notebook
View on GitHub