PSSPC 類別
基於泡利的計算軌跡轉換(PSSPC)。
將旋轉閘門及可選的CCX閘轉換為適合晶格手術資源估計的T態操作。
建構函式
PSSPC(*, num_ts_per_rotation: int = 20, ccx_magic_states: bool = False)
僅限關鍵字的參數
| 名稱 | Description |
|---|---|
|
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
如果為真,CCX 閘被當作魔態來處理,而非分解成 T 閘。 預設值為 False。
ccx_magic_states: bool = False