You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a OpType.Phase to a Circuit seems to cause the circuit render to not show the circuit diagram.
We could make it so that the OpType.Phase is invisible and add the numerical value of the phase alongside the Circuit somewhere. We should also think about how to represent conditional phase as this is what the Phase OpType was introduced to handle.
circ = Circuit(2).H(0).CX(0,1)
render_circuit_jupyter(circ) # This works fine
But If I then add a PhaseOpType...
circ.Phase(0.25)
render_circuit_jupyter(circ) # diagram doesn't show
The text was updated successfully, but these errors were encountered:
Adding a
OpType.Phase
to aCircuit
seems to cause the circuit render to not show the circuit diagram.We could make it so that the
OpType.Phase
is invisible and add the numerical value of the phase alongside theCircuit
somewhere. We should also think about how to represent conditional phase as this is what the PhaseOpType
was introduced to handle.But If I then add a
Phase
OpType
...The text was updated successfully, but these errors were encountered: