Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Ankaa-2 #644

Merged
merged 5 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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]:
Expand All @@ -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,
]

Expand All @@ -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:
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 @@ -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)
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 @@ -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)."
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_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",
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 @@ -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)."
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-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",
Expand Down
Loading