deltakit.circuit.gates.S#

class deltakit.circuit.gates.S(qubit: Qubit[T] | T, *, tag: str | None = None)#

Bases: OneQubitCliffordGate[T]

Principal square root of Z gate. Phases the amplitude of |1> by i.

Parameters:

qubit (Qubit[T] | T) – The qubit that this gate acts on.

Notes

Stabilizer Generators:
X -> +Y
Z -> +Z
Bloch Rotation:
Axis: +Z
Angle: 90 degrees
Unitary Matrix:
\[\begin{split}\begin{pmatrix} 1 & 0 \\ 0 & i \end{pmatrix}\end{split}\]

Methods#

S.stim_targets

Convert the qubits this gate acts on to equivalent stim targets.

S.transform_qubits

Transform this gates's qubits according to the id mapping.