Function quantum_circuit::print_phase()

← Back to Class quantum_circuit



Module quantumClass quantum_circuit → print_phase()

Description

Print the quantum phase in little endian order

quantum_circuit::print_phase()


Parameters

There are no parameters.


Return Value


Usage Example

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