netqasm.util.quantum_gates
- netqasm.util.quantum_gates.get_rotation_matrix(axis, angle)
Returns a single-qubit rotation matrix given an axis and an angle
- Return type:
ndarray
- netqasm.util.quantum_gates.get_controlled_rotation_matrix(axis, angle)
- Return type:
ndarray
- netqasm.util.quantum_gates.gate_to_matrix(instr, angle=None)
Returns the matrix representation of a quantum gate
- netqasm.util.quantum_gates.are_matrices_equal(*matrices)
Checks if two matrices are equal, disregarding any global phase