deltakit.circuit.gates.H#

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

Bases: OneQubitCliffordGate[T]

The Hadamard gate. Swaps the X and Z axes.

Parameters:

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

Notes

Stabilizer Generators:
X -> +Z
Z -> +X
Bloch Rotation:
Axis: +X+Z
Angle: 180 degrees
Unitary Matrix:
\[\begin{split}\frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}\end{split}\]

Methods#

H.stim_targets

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

H.transform_qubits

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