SurfaceCode 类
此类对基于门的旋转表面代码进行建模。
超参数:距离:int 图面代码的代码距离。
参考:
多米尼克·霍斯曼、奥斯汀·福勒、西蒙·德维特、罗德尼·范计量:Surface代码量子计算,arXiv:1111.4022
奥斯汀·福勒、马特奥·马兰托尼、约翰·马蒂尼斯、安德鲁·克莱兰:Surface代码:走向实际的大规模量子计算,arXiv:1208.0928
David S. Wang, Austin G. Fowler, Lloyd C. Hollenberg: Quantum computing with near neighbor interactions and error rate over 1%, arXiv:1009.3686
构造函数
SurfaceCode(crossing_prefactor: float = 0.03, error_correction_threshold: float = 0.01, one_qubit_gate_depth: int = 1, two_qubit_gate_depth: int = 4, code_cycle_override: int | None = None, code_cycle_offset: int = 0, *, distance: int = 3)
参数
| 名称 | 说明 |
|---|---|
|
crossing_prefactor
|
默认值: 0.03
|
|
error_correction_threshold
|
默认值: 0.01
|
|
one_qubit_gate_depth
|
默认值: 1
|
|
two_qubit_gate_depth
|
默认值: 4
|
|
code_cycle_override
|
默认值: None
|
|
code_cycle_offset
|
默认值: 0
|
仅限关键字的参数
| 名称 | 说明 |
|---|---|
|
distance
|
默认值: 3
|
方法
| provided_isa | |
| required_isa |
provided_isa
provided_isa(impl_isa: ISA, ctx: ISAContext) -> Generator[ISA, None, None]
参数
| 名称 | 说明 |
|---|---|
|
impl_isa
必需
|
|
|
ctx
必需
|
|
required_isa
static required_isa() -> ISARequirements
属性
crossing_prefactor
浮点由于错误更正交叉而导致逻辑错误率的先决条件。 (默认值为 0.03,请参阅 Eq。 (11) 在 arXiv:1208.0928)
crossing_prefactor: float = 0.03
error_correction_threshold
浮点图面代码的错误更正阈值。 (默认值为 0.01 (1%),请参阅 arXiv:1009.3686)
error_correction_threshold: float = 0.01
one_qubit_gate_depth
每个综合症提取周期中的一个量子比特门的深度。 (默认值为 1,请参阅 arXiv:1009.3686 中的 Fig. 2)
one_qubit_gate_depth: int = 1
two_qubit_gate_depth
每个综合症提取周期中的双量子比特门的深度。 (默认值为 4,请参阅 arXiv:1009.3686 中的 Fig. 2)
two_qubit_gate_depth: int = 4
code_cycle_override
可选[int] 如果提供,此值将用作每个综合症提取周期的时间,而不是基于入口时间和深度的默认计算。 (默认值为 None)
code_cycle_override: int | None = None
code_cycle_offset
int 额外的时间偏移量,以添加到综合症提取周期时间。 (默认值为 0)
code_cycle_offset: int = 0
distance
distance: int = 3