quantum_circuit::print_phase()← Back to Class quantum_circuit
Print the quantum phase in little endian order
quantum_circuit::print_phase()
There are no parameters.
boolean — Always returns true
import quantum
qc = quantum_circuit(2)
qc.h(0)
qc.y(0)
p = qc.print_phase()
' Output:
' [ -1.5708
' 1.5708
' 0
' 0 ]