circuit_matrix_calculator
get_circuit_matrix(circuit)
Compute the (large) unitary matrix corresponding to the circuit.
This matrix has 4**n elements, where n is the number of qubits. Result is stored as a numpy array of complex numbers.
Returns:
Type | Description |
---|---|
NDArray[complex128]
|
Matrix representation of the circuit. |