PauliRotationGate#

class cuquantum.pauliprop.experimental.PauliRotationGate(
angle: float,
pauli_string: str | Sequence[str],
qubit_indices: Sequence[int] | None = None,
)[source]#

A Pauli rotation gate exp(-i * angle/2 * P) where P is a Pauli string.

angle#

The rotation angle.

Type:

float

pauli_string#

The Pauli string defining the rotation axis, either as a single string (e.g. "XYZ") or a sequence of single-character Pauli labels (e.g. ["X", "Y", "Z"]).

Type:

str | Sequence[str]

qubit_indices#

The qubit indices this gate acts on. If None, defaults to [0, 1, ..., len(pauli_string)-1].

Type:

Sequence[int] | None