Circuit
Models for simulation of quantum circuit.
This module introduces the QuantumCircuit class. The qutip library is used to calculate the unitary matrix of a circuit.
- class sequence.components.circuit.Circuit(size: int)
Class for a quantum circuit.
- size
the number of qubits in the circuit.
- Type:
int
- gates
a list of commands bound to register.
- Type:
list[GATE_INFO_TYPE]
- measured_qubits
a list of indices of measured qubits.
- Type:
list[int]
- get_unitary_matrix() ndarray
Method to get unitary matrix of circuit without measurement.
- Returns:
the matrix for the circuit operations.
- Return type:
np.ndarray