deltakit.circuit.gates.H_XY#

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

Bases: OneQubitCliffordGate[T]

A variant of the Hadamard gate that swaps the X and Y axes (instead of X and Z).

Parameters:

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

Notes

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

Methods#

H_XY.stim_targets

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

H_XY.transform_qubits

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