Skip to content

Commit

Permalink
chore: remove references to rigetti target ankaa-9q-3 due to qpu reti…
Browse files Browse the repository at this point in the history
…rement (#662)
  • Loading branch information
jselig-rigetti authored Feb 20, 2025
1 parent 0684b10 commit 1e53c28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
5 changes: 0 additions & 5 deletions azure-quantum/azure/quantum/target/rigetti/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ class RigettiTarget(str, Enum):

ANKAA_3 = "rigetti.qpu.ankaa-3"

ANKAA_9Q_3 = "rigetti.qpu.ankaa-9q-3"

def simulators() -> List[str]:
"""Returns a list of simulator targets"""
return [
Expand All @@ -44,7 +42,6 @@ def qpus() -> List[str]:
"""Returns a list of QPU targets"""
return [
RigettiTarget.ANKAA_3.value,
RigettiTarget.ANKAA_9Q_3.value,
]

def num_qubits(target_name) -> int:
Expand All @@ -54,8 +51,6 @@ def num_qubits(target_name) -> int:
return 20
elif target_name == RigettiTarget.ANKAA_3.value:
return 84
elif target_name == RigettiTarget.ANKAA_9Q_3.value:
return 9
else:
raise ValueError(f"Unknown target {target_name}")

Expand Down
6 changes: 3 additions & 3 deletions azure-quantum/tests/unit/test_qiskit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,13 +1618,13 @@ def test_qiskit_get_rigetti_qpu_targets(self):
provider = AzureQuantumProvider(workspace=workspace)

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

self.assertEqual(backend.name(), RigettiTarget.ANKAA_9Q_3.value)
self.assertEqual(backend.name(), RigettiTarget.ANKAA_3.value)
config = backend.configuration()
self.assertFalse(config.simulator)
self.assertEqual(1, config.max_experiments)
Expand Down
3 changes: 1 addition & 2 deletions samples/hello-world/HW-rigetti-qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
"| --- | --- | --- | --- |\n",
"| 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",
"| Ankaa-3 (hardware) | `rigetti.qpu.ankaa-3` |84 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
"| Ankaa-9Q-3 (hardware) | `rigetti.qpu.ankaa-9q-3` | 9 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
"\n",
"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)."
]
Expand Down Expand Up @@ -343,7 +342,7 @@
},
"source": [
"### 5. Next steps\n",
"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",
"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",
"\n",
"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",
"\n",
Expand Down
3 changes: 1 addition & 2 deletions samples/hello-world/HW-rigetti-qsharp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
"| --- | --- | --- | --- |\n",
"| 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",
"| Ankaa-3 (hardware) | `rigetti.qpu.ankaa-3` |84 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
"| Ankaa-9Q-3 (hardware) | `rigetti.qpu.ankaa-9q-3` | 9 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
"\n",
"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)."
]
Expand Down Expand Up @@ -338,7 +337,7 @@
},
"source": [
"### 5. Next steps\n",
"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",
"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",
"\n",
"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",
"\n",
Expand Down

0 comments on commit 1e53c28

Please sign in to comment.