Header menu logo Encodings

Gate Type

Elementary quantum gate for circuit synthesis.

Universal gate set used in CNOT staircase decomposition. Requires qualified access to avoid ambiguity with CliffordGate cases from the Tapering module.

Union cases

Union case Description

CNOT(control, target)

Full Usage: CNOT(control, target)

Parameters:
    control : int
    target : int

Controlled-NOT gate.

control : int
target : int

H qubit

Full Usage: H qubit

Parameters:
    qubit : int

Hadamard gate on a single qubit.

qubit : int

Rz(qubit, angle)

Full Usage: Rz(qubit, angle)

Parameters:
    qubit : int
    angle : float

Rotation Rz(θ) = exp(−iθZ/2) on a single qubit.

qubit : int
angle : float

S qubit

Full Usage: S qubit

Parameters:
    qubit : int

Phase gate S on a single qubit (Z^½).

qubit : int

Sdg qubit

Full Usage: Sdg qubit

Parameters:
    qubit : int

Adjoint phase gate S† on a single qubit (Z^−½).

qubit : int

Instance members

Instance member Description

this.IsCNOT

Full Usage: this.IsCNOT

Returns: bool
Returns: bool

this.IsH

Full Usage: this.IsH

Returns: bool
Returns: bool

this.IsRz

Full Usage: this.IsRz

Returns: bool
Returns: bool

this.IsS

Full Usage: this.IsS

Returns: bool
Returns: bool

this.IsSdg

Full Usage: this.IsSdg

Returns: bool
Returns: bool

Type something to start searching.