quantum_circuit::phase()← Back to Class quantum_circuit
Get the quantum phase in little endian order
quantum_circuit::phase()
There are no parameters.
matrix — Returns the matrix representation of the phase
import quantum
qc = quantum_circuit(2)
qc.h(0)
qc.y(0)
p = qc.phase()
p.print()
' Output:
' [ -1.5708
' 1.5708
' 0
' 0 ]