Skip to content

Commit

Permalink
Merge pull request #8 from BatmanAoD/add-ankaa-2
Browse files Browse the repository at this point in the history
Add Ankaa-2
  • Loading branch information
BatmanAoD authored Oct 27, 2023
2 parents 378f66a + d88ef39 commit 1b2e58b
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 @@ -51,6 +53,8 @@ def num_qubits(target_name) -> int:
return 80
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 1b2e58b

Please sign in to comment.