Qubit¶
- class guppyft.code.iceberg.logical.Qubit[source]¶
A dynamic logical qubit from an Iceberg logical block.
- ry(phase: float) None[source]¶
Ry rotation of
phaseradians on a dynamic logical qubit.Ry is not a primitive and is implemented here as .. math:
R_y(\theta) = R_x(-\pi/2) R_z(\theta) R_x(\pi/2)
where \(\theta\) is
phase.
- try_measure_x() Option[Measurement][source]¶
Fallible non-destructive measurement in the X basis.
- try_measure_z() Option[Measurement][source]¶
Fallible non-destructive measurement in the Z basis.