Qubit

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

A logical qubit encoded in the Steane code.

Constructing a Qubit instance prepares it in the logical zero state.

static __new__() Qubit[source]
free() None[source]

Free the qubit.

h() None[source]

H gate.

measure_z() Measurement[source]

Destructive measurement of the qubit in the Z basis.

qec_cycle() None[source]

Perform a QEC cycle on the logical qubit.

s() None[source]

S gate.

sdg() None[source]

Sdg gate.

t() None[source]

Apply a logical \(T\) gate using magic-state injection.

tdg() None[source]

Apply a logical \(T^\dagger\) gate using magic-state injection.

x() None[source]

X gate.

y() None[source]

Y gate.

z() None[source]

Z gate.