uniqc.circuit_builder.matrix module¶
Matrix utilities for uniqc.circuit_builder circuits.
- uniqc.circuit_builder.matrix.get_matrix(circuit)[source]¶
Return the full unitary matrix for
circuit.Qubit 0 is treated as the least-significant bit of the statevector index. The returned matrix uses the standard convention
state_out = U @ state_inand gates are applied in the same order asopcode_list.