Skip to content

Commit b031de3

Browse files
authored
Remove Ankaa-2 (#644)
* fix: remove Ankaa-2 from Rigetti targets * fix: remove Ankaa-2 from Rigetti sample notebooks * chore: use Ankaa-9Q-3 for Rigetti qiskit test * chore: replace ankaa-2 with ankaa-9q-3 in test recordings * Revert "chore: replace ankaa-2 with ankaa-9q-3 in test recordings" This reverts commit dc96422.
1 parent 1560a53 commit b031de3

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class RigettiTarget(str, Enum):
2929
QVM = "rigetti.sim.qvm"
3030
"""A simulator target for Quil. See https://github.com/quil-lang/qvm for more info."""
3131

32-
ANKAA_2 = "rigetti.qpu.ankaa-2"
33-
3432
ANKAA_9Q_3 = "rigetti.qpu.ankaa-9q-3"
3533

3634
def simulators() -> List[str]:
@@ -42,7 +40,6 @@ def simulators() -> List[str]:
4240
def qpus() -> List[str]:
4341
"""Returns a list of QPU targets"""
4442
return [
45-
RigettiTarget.ANKAA_2.value,
4643
RigettiTarget.ANKAA_9Q_3.value,
4744
]
4845

@@ -51,8 +48,6 @@ def num_qubits(target_name) -> int:
5148

5249
if target_name == RigettiTarget.QVM.value:
5350
return 20
54-
elif target_name == RigettiTarget.ANKAA_2.value:
55-
return 84
5651
elif target_name == RigettiTarget.ANKAA_9Q_3.value:
5752
return 9
5853
else:

azure-quantum/tests/unit/test_qiskit.py

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

17371737
try:
1738-
backend = provider.get_backend(RigettiTarget.ANKAA_2.value)
1738+
backend = provider.get_backend(RigettiTarget.ANKAA_9Q_3.value)
17391739
except QiskitBackendNotFoundError as ex:
1740-
msg = f"Target {RigettiTarget.ANKAA_2} is not available for workspace {workspace.name}."
1740+
msg = f"Target {RigettiTarget.ANKAA_9Q_3} is not available for workspace {workspace.name}."
17411741
warnings.warn(f"{msg}\nException:\n{QiskitBackendNotFoundError.__name__}\n{ex}")
17421742
pytest.skip(msg)
17431743

1744-
self.assertEqual(backend.name(), RigettiTarget.ANKAA_2.value)
1744+
self.assertEqual(backend.name(), RigettiTarget.ANKAA_9Q_3.value)
17451745
config = backend.configuration()
17461746
self.assertFalse(config.simulator)
17471747
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
@@ -134,7 +134,6 @@
134134
"| Target name | Target ID | Number of qubits | Description |\n",
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",
137-
"| Ankaa-2 (hardware) | `rigetti.qpu.ankaa-2` | 84 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
138137
"| 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)."
@@ -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_2`. 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_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",
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
@@ -128,7 +128,6 @@
128128
"| Target name | Target ID | Number of qubits | Description |\n",
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",
131-
"| Ankaa-2 (hardware) | `rigetti.qpu.ankaa-2` | 84 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
132131
"| 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)."
@@ -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-2`. 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-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",
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)