Skip to content
Merged
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
28 changes: 5 additions & 23 deletions azure-quantum/azure/quantum/qiskit/backends/ionq.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from qiskit.providers import Options, Provider

from qiskit_ionq.helpers import (
ionq_basis_gates,
GATESET_MAP,
qiskit_circ_to_ionq_circ,
)
Expand Down Expand Up @@ -51,25 +52,6 @@
_IONQ_SHOTS_INPUT_PARAM_NAME = "shots"
_DEFAULT_SHOTS_COUNT = 500

IONQ_BASIS_GATES = [
"measure",
"m",
"cx",
"cz",
"h",
"reset",
"rx",
"ry",
"rz",
"s",
"swap",
"t",
"x",
"y",
"z",
"id",
]

class IonQQirBackendBase(AzureQirBackend):
"""Base class for interfacing with an IonQ QIR backend"""

Expand Down Expand Up @@ -133,7 +115,7 @@ def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
"local": False,
"coupling_map": None,
"description": "IonQ simulator on Azure Quantum",
"basis_gates": IONQ_BASIS_GATES,
"basis_gates": ionq_basis_gates,
"memory": False,
"n_qubits": 29,
"conditional": False,
Expand Down Expand Up @@ -165,7 +147,7 @@ def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
"local": False,
"coupling_map": None,
"description": "IonQ QPU on Azure Quantum",
"basis_gates": IONQ_BASIS_GATES,
"basis_gates": ionq_basis_gates,
"memory": False,
"n_qubits": 11,
"conditional": False,
Expand Down Expand Up @@ -197,7 +179,7 @@ def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
"local": False,
"coupling_map": None,
"description": "IonQ Aria QPU on Azure Quantum",
"basis_gates": IONQ_BASIS_GATES,
"basis_gates": ionq_basis_gates,
"memory": False,
"n_qubits": 23,
"conditional": False,
Expand Down Expand Up @@ -229,7 +211,7 @@ def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
"local": False,
"coupling_map": None,
"description": "IonQ Forte QPU on Azure Quantum",
"basis_gates": IONQ_BASIS_GATES,
"basis_gates": ionq_basis_gates,
"memory": False,
"n_qubits": 35,
"conditional": False,
Expand Down
7 changes: 5 additions & 2 deletions azure-quantum/azure/quantum/qiskit/backends/microsoft.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
from qiskit.providers.models import BackendConfiguration
from qiskit.providers import Options, Provider

MICROSOFT_BASIS_GATES = [
QIR_BASIS_GATES = [
"measure",
"m",
"ccx",
"cx",
"cz",
"h",
Expand All @@ -23,8 +24,10 @@
"ry",
"rz",
"s",
"sdg",
"swap",
"t",
"tdg",
"x",
"y",
"z",
Expand Down Expand Up @@ -90,7 +93,7 @@ def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
"local": False,
"coupling_map": None,
"description": "Resource estimator on Azure Quantum",
"basis_gates": MICROSOFT_BASIS_GATES,
"basis_gates": QIR_BASIS_GATES,
"memory": False,
"n_qubits": 0xFFFFFFFFFFFFFFFF, # NOTE: maximum 64-bit unsigned value
"conditional": True,
Expand Down
8 changes: 5 additions & 3 deletions azure-quantum/azure/quantum/qiskit/backends/qci.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from qiskit.providers.models import BackendConfiguration
from qiskit.providers import Options, Provider

QCI_BASIS_GATES = [
QIR_BASIS_GATES = [
"measure",
"m",
"barrier",
Expand All @@ -27,8 +27,10 @@
"ry",
"rz",
"s",
"sdg",
"swap",
"t",
"tdg",
"x",
"y",
"z",
Expand Down Expand Up @@ -108,7 +110,7 @@ def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
"local": False,
"coupling_map": None,
"description": "QCI simulator on Azure Quantum",
"basis_gates": QCI_BASIS_GATES,
"basis_gates": QIR_BASIS_GATES,
"memory": False,
"n_qubits": 29,
"conditional": True,
Expand Down Expand Up @@ -140,7 +142,7 @@ def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
"local": False,
"coupling_map": None,
"description": "QCI QPU on Azure Quantum",
"basis_gates": QCI_BASIS_GATES,
"basis_gates": QIR_BASIS_GATES,
"memory": False,
"n_qubits": 11,
"conditional": True,
Expand Down
4 changes: 3 additions & 1 deletion azure-quantum/azure/quantum/qiskit/backends/quantinuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@
"cx",
"cz",
"s",
"sdg",
"t",
"tdg",
"v",
"vdg",
"rzz",
"zz",
"measure",
"reset",
]
Expand Down
8 changes: 5 additions & 3 deletions azure-quantum/azure/quantum/qiskit/backends/rigetti.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from qiskit.providers.models import BackendConfiguration
from qiskit.providers import Options, Provider

RIGETTI_BASIS_GATES = [
QIR_BASIS_GATES = [
"measure",
"m",
"cx",
Expand All @@ -23,7 +23,9 @@
"ry",
"rz",
"s",
"sdg,"
"t",
"tdg",
"x",
"y",
"z",
Expand Down Expand Up @@ -83,7 +85,7 @@ def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
"local": False,
"coupling_map": None,
"description": "Rigetti simulator on Azure Quantum",
"basis_gates": RIGETTI_BASIS_GATES,
"basis_gates": QIR_BASIS_GATES,
"memory": True,
"n_qubits": RigettiTarget.num_qubits(name),
"conditional": False,
Expand Down Expand Up @@ -115,7 +117,7 @@ def __init__(self, name: str, provider: "AzureQuantumProvider", **kwargs):
"local": False,
"coupling_map": None,
"description": "Rigetti QPU on Azure Quantum",
"basis_gates": RIGETTI_BASIS_GATES,
"basis_gates": QIR_BASIS_GATES,
"memory": True,
"n_qubits": RigettiTarget.num_qubits(name),
"conditional": False,
Expand Down