circuit_matrix_calculator
get_circuit_matrix
Compute the (large) unitary matrix corresponding to the circuit.
This matrix has \(4^n\) elements, where \(n\) is the number of qubits.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
circuit
|
Circuit
|
The circuit for which to compute the matrix. |
required |
Returns:
| Type | Description |
|---|---|
NDArray[complex128]
|
Matrix representation of the circuit. |