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 src.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