jet.state.QubitRegister¶
-
QubitRegister
(size: int, data: Optional[numpy.ndarray] = None) → jet.state.QuditRegister[source]¶ Constructs a qubit register state with the given size and optional state vector.
- Parameters
size (int) – Number of qubits.
data (np.ndarray or None) – Optional state vector.
- Returns
QuditRegister with the specified state vector.
- Return type
code/api/jet.state.QubitRegister
Download Python script
Download Notebook
View on GitHub