Skip to content

Commit

Permalink
chore: add rigetti ankaa-9q-3 target (#620)
Browse files Browse the repository at this point in the history
* chore: add rigetti ankaa-9q-3 target

* feat: add Ankaa-9Q-3 target

* chore: add Ankaa-9Q-3 to sample notebooks

* chore: fix bad auto-merge

---------

Co-authored-by: Michael Bryant <[email protected]>
Co-authored-by: Michael Bryant <[email protected]>
  • Loading branch information
3 people authored Oct 4, 2024
1 parent e25d185 commit 1560a53
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions azure-quantum/azure/quantum/target/rigetti/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class RigettiTarget(str, Enum):

ANKAA_2 = "rigetti.qpu.ankaa-2"

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

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

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

Expand Down
1 change: 1 addition & 0 deletions samples/hello-world/HW-rigetti-qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
"| --- | --- | --- | --- |\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
1 change: 1 addition & 0 deletions samples/hello-world/HW-rigetti-qsharp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
"| --- | --- | --- | --- |\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

0 comments on commit 1560a53

Please sign in to comment.