Function quantum_circuit::phase()

← Back to Class quantum_circuit



Module quantumClass quantum_circuit → phase()

Description

Get the quantum phase in little endian order

quantum_circuit::phase()


Parameters

There are no parameters.


Return Value


Usage Example

import quantum
 
qc = quantum_circuit(2)
 
qc.h(0)
qc.y(0)
 
p = qc.phase()
p.print()
 
 
' Output:
' [ -1.5708
'    1.5708
'         0
'         0 ]