Skip to content

Commit 264ded8

Browse files
authored
Merge pull request #277 from BQSKit/update-models
Update Pre-built Models
2 parents c301746 + c33fda2 commit 264ded8

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

bqskit/ext/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
1919
Aspen11Model
2020
AspenM2Model
21+
ANKAA2Model
22+
ANKAA9Q3Model
2123
H1_1Model
2224
H1_2Model
25+
H2_1Model
2326
Sycamore23Model
2427
SycamoreModel
2528
model_from_backend
@@ -64,8 +67,11 @@
6467
from bqskit.ext.qiskit.translate import qiskit_to_bqskit
6568
from bqskit.ext.quantinuum import H1_1Model
6669
from bqskit.ext.quantinuum import H1_2Model
70+
from bqskit.ext.quantinuum import H2_1Model
6771
from bqskit.ext.qutip.translate import bqskit_to_qutip
6872
from bqskit.ext.qutip.translate import qutip_to_bqskit
73+
from bqskit.ext.rigetti import ANKAA2Model
74+
from bqskit.ext.rigetti import ANKAA9Q3Model
6975
from bqskit.ext.rigetti import Aspen11Model
7076
from bqskit.ext.rigetti import AspenM2Model
7177
from bqskit.ext.supermarq import supermarq_critical_depth
@@ -95,6 +101,9 @@
95101
'AspenM2Model',
96102
'H1_1Model',
97103
'H1_2Model',
104+
'H2_1Model',
105+
'ANKAA2Model',
106+
'ANKAA9Q3Model',
98107
'Sycamore23Model',
99108
'SycamoreModel',
100109
]

bqskit/ext/honeywell.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

bqskit/ext/quantinuum.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33

44
from bqskit.compiler.machine import MachineModel
55
from bqskit.ir.gate import Gate
6-
from bqskit.ir.gates.constant.zz import ZZGate
76
from bqskit.ir.gates.parameterized.rz import RZGate
7+
from bqskit.ir.gates.parameterized.rzz import RZZGate
88
from bqskit.ir.gates.parameterized.u1q import U1qPi2Gate
99
from bqskit.ir.gates.parameterized.u1q import U1qPiGate
1010

11-
quantinuum_gate_set: set[Gate] = {U1qPiGate, U1qPi2Gate, RZGate(), ZZGate()}
11+
quantinuum_gate_set: set[Gate] = {U1qPiGate, U1qPi2Gate, RZGate(), RZZGate()}
1212

1313
H1_1Model = MachineModel(20, None, quantinuum_gate_set)
1414
H1_2Model = MachineModel(20, None, quantinuum_gate_set)
15+
H2_1Model = MachineModel(56, None, quantinuum_gate_set)

bqskit/ext/rigetti.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33

44
from bqskit.compiler.machine import MachineModel
55
from bqskit.ir.gates.constant.cz import CZGate
6+
from bqskit.ir.gates.constant.iswap import ISwapGate
67
from bqskit.ir.gates.constant.sx import SXGate
78
from bqskit.ir.gates.constant.x import XGate
89
from bqskit.ir.gates.parameterized.rz import RZGate
910
from bqskit.qis.graph import CouplingGraph
1011

1112
rigetti_gate_set = {SXGate(), XGate(), RZGate(), CZGate()}
1213

14+
ankaa_gate_set = {SXGate(), XGate(), RZGate(), CZGate(), ISwapGate()}
15+
1316
_aspen_11_coupling_graph = CouplingGraph([
1417
# Ring 1
1518
(0, 1), (1, 2), (2, 3), (3, 4),
@@ -79,10 +82,20 @@
7982
_aspen_m2_coupling_graph = CouplingGraph(_links)
8083
"""Retrieved August 31, 2022: https://qcs.rigetti.com/qpus."""
8184

85+
_ankaa_9q_3_coupling_graph = CouplingGraph.grid(3, 3)
86+
"""Retrieved September 11, 2024: https://qcs.rigetti.com/qpus."""
87+
88+
_ankaa_2_coupling_graph = CouplingGraph.grid(7, 12)
89+
"""Retrieved September 11, 2024: https://qcs.rigetti.com/qpus."""
90+
8291
Aspen11Model = MachineModel(40, _aspen_11_coupling_graph, rigetti_gate_set)
8392
"""A BQSKit MachineModel for Rigetti's Aspen-11 quantum processor."""
8493

8594
AspenM2Model = MachineModel(80, _aspen_m2_coupling_graph, rigetti_gate_set)
8695
"""A BQSKit MachineModel for Rigetti's Aspen-M-2 quantum processor."""
8796

97+
ANKAA2Model = MachineModel(84, _ankaa_2_coupling_graph, ankaa_gate_set)
98+
99+
ANKAA9Q3Model = MachineModel(9, _ankaa_9q_3_coupling_graph, ankaa_gate_set)
100+
88101
__all__ = ['Aspen11Model', 'AspenM2Model']

0 commit comments

Comments
 (0)