From 9f1b2bc2648bfe7e2232d52fff9548a1de4cbb14 Mon Sep 17 00:00:00 2001 From: tncc Date: Wed, 1 Nov 2023 12:06:37 -0700 Subject: [PATCH] Add ankaa-2 (#519) Co-authored-by: Xinyi Joffre --- azure-quantum/azure/quantum/target/rigetti/target.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azure-quantum/azure/quantum/target/rigetti/target.py b/azure-quantum/azure/quantum/target/rigetti/target.py index 36a243987..ad6090b1c 100644 --- a/azure-quantum/azure/quantum/target/rigetti/target.py +++ b/azure-quantum/azure/quantum/target/rigetti/target.py @@ -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""" @@ -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: @@ -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}")