Qubit

class guppyft.code.iceberg.logical.Qubit[source]

A dynamic logical qubit from an Iceberg logical block.

static __new__() → Qubit[source]

Allocate a dynamic logical qubit.

rx(phase: float) → None[source]

Rx rotation of phase radians.

ry(phase: float) → None[source]

Ry rotation of phase radians.

rz(phase: float) → None[source]

Rz rotation of phase radians.

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.

x() → None[source]

X gate.

y() → None[source]

Y gate.

z() → None[source]

Z gate.