Skip to content

Commit 1e53c28

Browse files
chore: remove references to rigetti target ankaa-9q-3 due to qpu retirement (#662)
1 parent 0684b10 commit 1e53c28

4 files changed

Lines changed: 5 additions & 12 deletions

File tree

azure-quantum/azure/quantum/target/rigetti/target.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ class RigettiTarget(str, Enum):
3232

3333
ANKAA_3 = "rigetti.qpu.ankaa-3"
3434

35-
ANKAA_9Q_3 = "rigetti.qpu.ankaa-9q-3"
36-
3735
def simulators() -> List[str]:
3836
"""Returns a list of simulator targets"""
3937
return [
@@ -44,7 +42,6 @@ def qpus() -> List[str]:
4442
"""Returns a list of QPU targets"""
4543
return [
4644
RigettiTarget.ANKAA_3.value,
47-
RigettiTarget.ANKAA_9Q_3.value,
4845
]
4946

5047
def num_qubits(target_name) -> int:
@@ -54,8 +51,6 @@ def num_qubits(target_name) -> int:
5451
return 20
5552
elif target_name == RigettiTarget.ANKAA_3.value:
5653
return 84
57-
elif target_name == RigettiTarget.ANKAA_9Q_3.value:
58-
return 9
5954
else:
6055
raise ValueError(f"Unknown target {target_name}")
6156

azure-quantum/tests/unit/test_qiskit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,13 +1618,13 @@ def test_qiskit_get_rigetti_qpu_targets(self):
16181618
provider = AzureQuantumProvider(workspace=workspace)
16191619

16201620
try:
1621-
backend = provider.get_backend(RigettiTarget.ANKAA_9Q_3.value)
1621+
backend = provider.get_backend(RigettiTarget.ANKAA_3.value)
16221622
except QiskitBackendNotFoundError as ex:
1623-
msg = f"Target {RigettiTarget.ANKAA_9Q_3} is not available for workspace {workspace.name}."
1623+
msg = f"Target {RigettiTarget.ANKAA_3} is not available for workspace {workspace.name}."
16241624
warnings.warn(f"{msg}\nException:\n{QiskitBackendNotFoundError.__name__}\n{ex}")
16251625
pytest.skip(msg)
16261626

1627-
self.assertEqual(backend.name(), RigettiTarget.ANKAA_9Q_3.value)
1627+
self.assertEqual(backend.name(), RigettiTarget.ANKAA_3.value)
16281628
config = backend.configuration()
16291629
self.assertFalse(config.simulator)
16301630
self.assertEqual(1, config.max_experiments)

samples/hello-world/HW-rigetti-qiskit.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@
135135
"| --- | --- | --- | --- |\n",
136136
"| Rigetti QVM (simulator) | `rigetti.sim.qvm` | 20 qubits | Rigetti's cloud-based, [open-source](https://github.com/quil-lang/qvm) \"Quantum Virtual Machine\" simulator. Free to use. |\n",
137137
"| Ankaa-3 (hardware) | `rigetti.qpu.ankaa-3` |84 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
138-
"| Ankaa-9Q-3 (hardware) | `rigetti.qpu.ankaa-9q-3` | 9 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
139138
"\n",
140139
"For this example, we will use `rigetti.sim.qvm`. To learn more about Rigetti's targets, check out [Rigetti's Azure Quantum documentation](https://learn.microsoft.com/azure/quantum/provider-rigetti)."
141140
]
@@ -343,7 +342,7 @@
343342
},
344343
"source": [
345344
"### 5. Next steps\n",
346-
"Next, you can try running a program on one of Rigetti's hardware targets. Just replace `RigettiTarget.QVM` with `RigettiTarget.ANKAA_9Q_3`. Or try another sample by navigating back to the sample gallery. The same \"hello world\" sample can be run with different quantum providers by choosing another option in the gallery card drop-down menu. Don't worry - your work here is automatically saved.\n",
345+
"Next, you can try running a program on one of Rigetti's hardware targets. Just replace `RigettiTarget.QVM` with `RigettiTarget.ANKAA_3`. Or try another sample by navigating back to the sample gallery. The same \"hello world\" sample can be run with different quantum providers by choosing another option in the gallery card drop-down menu. Don't worry - your work here is automatically saved.\n",
347346
"\n",
348347
"To learn more about submitting Qiskit circuits to Azure Quantum, review the Qiskit section of the [Azure Quantum documentation's page on Qiskit jobs](https://learn.microsoft.com/azure/quantum/quickstart-microsoft-qiskit&tabs=tabid-rigetti).\n",
349348
"\n",

samples/hello-world/HW-rigetti-qsharp.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
"| --- | --- | --- | --- |\n",
130130
"| Rigetti QVM (simulator) | `rigetti.sim.qvm` | 20 qubits | Rigetti's cloud-based, [open-source](https://github.com/quil-lang/qvm) \"Quantum Virtual Machine\" simulator. Free to use. |\n",
131131
"| Ankaa-3 (hardware) | `rigetti.qpu.ankaa-3` |84 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
132-
"| Ankaa-9Q-3 (hardware) | `rigetti.qpu.ankaa-9q-3` | 9 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
133132
"\n",
134133
"For this example, we will use `rigetti.sim.qvm`. To learn more about Rigetti's targets, check out [Rigetti's Azure Quantum documentation](https://learn.microsoft.com/azure/quantum/provider-rigetti)."
135134
]
@@ -338,7 +337,7 @@
338337
},
339338
"source": [
340339
"### 5. Next steps\n",
341-
"Next, you can try running a program on one of Rigetti's hardware targets. Just replace `rigetti.sim.qvm` with `rigetti.qpu.ankaa-9q-3`. Or try another sample by navigating back to the sample gallery. The same \"hello world\" sample can be run with different quantum providers by choosing another option in the gallery card drop-down menu. Don't worry - your work here is automatically saved.\n",
340+
"Next, you can try running a program on one of Rigetti's hardware targets. Just replace `rigetti.sim.qvm` with `rigetti.qpu.ankaa-3`. Or try another sample by navigating back to the sample gallery. The same \"hello world\" sample can be run with different quantum providers by choosing another option in the gallery card drop-down menu. Don't worry - your work here is automatically saved.\n",
342341
"\n",
343342
"To learn more about submitting jobs to Azure Quantum using Q#, refer to the [Azure Quantum documentation](https://learn.microsoft.com/azure/quantum/how-to-submit-jobs?pivots=ide-python&tabs=tabid-python).\n",
344343
"\n",

0 commit comments

Comments
 (0)