Skip to content

Commit

Permalink
Add ankaa-2 (#519)
Browse files Browse the repository at this point in the history
Co-authored-by: Xinyi Joffre <xiou@microsoft.com>
  • Loading branch information
tncc and xinyi-joffre authored Nov 1, 2023
1 parent 5f8b439 commit 9f1b2bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azure-quantum/azure/quantum/target/rigetti/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class RigettiTarget(str, Enum):
"""A simulator target for Quil. See https://github.com/quil-lang/qvm for more info."""

ASPEN_M_3 = "rigetti.qpu.aspen-m-3"
ANKAA_2 = "rigetti.qpu.ankaa-2"

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

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

Expand Down

0 comments on commit 9f1b2bc

Please sign in to comment.