tsim.core.instructions.spp
← Module overview
function
source
functionspp¶source
tsim.core.instructions.spp
Signature
def spp(b: GraphRepresentation, paulis: list[tuple[Literal['X', 'Y', 'Z'], int]], dagger: bool = False) -> NoneApply 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
| Name | Type | Default | Description |
|---|---|---|---|
b | GraphRepresentation | required | The graph representation to modify. |
paulis | list[tuple[Literal['X', 'Y', 'Z'], int]] | required | List of (pauli_type, qubit) pairs defining the Pauli product P. |
dagger | bool | False | If True, apply exp(+i pi/4 P) (phase by -i) instead. |