Skip to content

tsim.core.instructions.spp

← Module overview

functionsppsource

tsim.core.instructions.spp

Signature
def spp(b: GraphRepresentation, paulis: list[tuple[Literal['X', 'Y', 'Z'], int]], dagger: bool = False) -> None

Apply exp(-i pi/4 P) (up to global phase) for a Pauli product P.

Phases the -1 eigenspace of P by i (or -i if dagger). For a single qubit, SPP Z0 is the S gate and SPP_DAG Z0 is S_DAG.

Parameters

NameTypeDefaultDescription
bGraphRepresentationrequiredThe graph representation to modify.
paulislist[tuple[Literal['X', 'Y', 'Z'], int]]requiredList of (pauli_type, qubit) pairs defining the Pauli product P.
daggerboolFalseIf True, apply exp(+i pi/4 P) (phase by -i) instead.
source