PSSPC クラス
Pauli ベースの計算トレース変換 (PSSPC)。
回転ゲートと必要に応じて CCX ゲートを、格子手術リソース推定に適した T 状態ベースの操作に変換します。
コンストラクター
PSSPC(*, num_ts_per_rotation: int = 20, ccx_magic_states: bool = False)
キーワードのみのパラメーター
| 名前 | 説明 |
|---|---|
|
num_ts_per_rotation
|
規定値: 20
|
|
ccx_magic_states
|
規定値: False
|
メソッド
| transform |
PSSPC 変換をトレースに適用します。 |
transform
属性
num_ts_per_rotation
回転ゲートごとに使用される T 状態の数。 既定値は 20 です。
num_ts_per_rotation: int = 20
ccx_magic_states
True の場合、CCX ゲートは T ゲートに分解されるのではなく、魔法の状態として扱われます。 既定値は False です。
ccx_magic_states: bool = False