PSSPC Class

Pauli-based computation trace transform (PSSPC).

Converts rotation gates and optionally CCX gates into T-state-based operations suitable for lattice surgery resource estimation.

Constructor

PSSPC(*, num_ts_per_rotation: int = 20, ccx_magic_states: bool = False)

Keyword-Only Parameters

Name Description
num_ts_per_rotation
Default value: 20
ccx_magic_states
Default value: False

Methods

transform

Apply the PSSPC transformation to a trace.

transform

Apply the PSSPC transformation to a trace.

transform(trace: Trace) -> Trace | None

Parameters

Name Description
trace
Required

The input trace.

Returns

Type Description

The transformed trace.

Attributes

num_ts_per_rotation

Number of T states used per rotation gate. Default is 20.

num_ts_per_rotation: int = 20

ccx_magic_states

If True, CCX gates are treated as magic states rather than being decomposed into T gates. Default is False.

ccx_magic_states: bool = False