Skip to content
Open
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
7 changes: 6 additions & 1 deletion azure-quantum/azure/quantum/target/rigetti/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class RigettiTarget(str, Enum):

ANKAA_3 = "rigetti.qpu.ankaa-3"

CEPHEUS_1_108Q = "rigetti.qpu.cepheus-1-108q"

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

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

Expand Down
3 changes: 2 additions & 1 deletion samples/hello-world/HW-rigetti-qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@
"| 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-3 (hardware) | `rigetti.qpu.ankaa-3` |84 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
"| Ankaa-3 (hardware) | `rigetti.qpu.ankaa-3` | 84 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
"| Cepheus-1-108Q (hardware) | `rigetti.qpu.cepheus-1-108q` | 108 qubits | A 5th-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
3 changes: 2 additions & 1 deletion samples/hello-world/HW-rigetti-qsharp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,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-3 (hardware) | `rigetti.qpu.ankaa-3` |84 qubits | A 4th-generation, square-lattice processor. Pricing based on QPUs. |\n",
"| Cepheus-1-108Q (hardware) | `rigetti.qpu.cepheus-1-108q` |108 qubits | A 5th-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 @@ -334,7 +335,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-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.cepheus-1-108q`. 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