diff --git a/azure-quantum/azure/quantum/target/rigetti/target.py b/azure-quantum/azure/quantum/target/rigetti/target.py index 4685b1ca..6e7fa13f 100644 --- a/azure-quantum/azure/quantum/target/rigetti/target.py +++ b/azure-quantum/azure/quantum/target/rigetti/target.py @@ -29,8 +29,6 @@ class RigettiTarget(str, Enum): QVM = "rigetti.sim.qvm" """A simulator target for Quil. See https://github.com/quil-lang/qvm for more info.""" - ANKAA_2 = "rigetti.qpu.ankaa-2" - ANKAA_9Q_3 = "rigetti.qpu.ankaa-9q-3" def simulators() -> List[str]: @@ -42,7 +40,6 @@ def simulators() -> List[str]: def qpus() -> List[str]: """Returns a list of QPU targets""" return [ - RigettiTarget.ANKAA_2.value, RigettiTarget.ANKAA_9Q_3.value, ] @@ -51,8 +48,6 @@ def num_qubits(target_name) -> int: if target_name == RigettiTarget.QVM.value: return 20 - elif target_name == RigettiTarget.ANKAA_2.value: - return 84 elif target_name == RigettiTarget.ANKAA_9Q_3.value: return 9 else: diff --git a/azure-quantum/tests/unit/test_qiskit.py b/azure-quantum/tests/unit/test_qiskit.py index 3eb93222..f6a0ed03 100644 --- a/azure-quantum/tests/unit/test_qiskit.py +++ b/azure-quantum/tests/unit/test_qiskit.py @@ -1735,13 +1735,13 @@ def test_qiskit_get_rigetti_qpu_targets(self): provider = AzureQuantumProvider(workspace=workspace) try: - backend = provider.get_backend(RigettiTarget.ANKAA_2.value) + backend = provider.get_backend(RigettiTarget.ANKAA_9Q_3.value) except QiskitBackendNotFoundError as ex: - msg = f"Target {RigettiTarget.ANKAA_2} is not available for workspace {workspace.name}." + msg = f"Target {RigettiTarget.ANKAA_9Q_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_2.value) + self.assertEqual(backend.name(), RigettiTarget.ANKAA_9Q_3.value) config = backend.configuration() self.assertFalse(config.simulator) self.assertEqual(1, config.max_experiments) diff --git a/samples/hello-world/HW-rigetti-qiskit.ipynb b/samples/hello-world/HW-rigetti-qiskit.ipynb index 819b8b81..829d576e 100644 --- a/samples/hello-world/HW-rigetti-qiskit.ipynb +++ b/samples/hello-world/HW-rigetti-qiskit.ipynb @@ -134,7 +134,6 @@ "| Target name | Target ID | Number of qubits | Description |\n", "| --- | --- | --- | --- |\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-2 (hardware) | `rigetti.qpu.ankaa-2` | 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)." @@ -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_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", + "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", "\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", diff --git a/samples/hello-world/HW-rigetti-qsharp.ipynb b/samples/hello-world/HW-rigetti-qsharp.ipynb index b8490d5d..de3eecf4 100644 --- a/samples/hello-world/HW-rigetti-qsharp.ipynb +++ b/samples/hello-world/HW-rigetti-qsharp.ipynb @@ -128,7 +128,6 @@ "| Target name | Target ID | Number of qubits | Description |\n", "| --- | --- | --- | --- |\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-2 (hardware) | `rigetti.qpu.ankaa-2` | 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)." @@ -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-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", + "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", "\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",