Skip to content

Commit

Permalink
Add new IonQ forte-enterprise backend names to tests. Use aria backen…
Browse files Browse the repository at this point in the history
…d instead of harmony as default backend since harmony has been retired.
  • Loading branch information
radumarg committed Jan 24, 2025
1 parent d48dbcf commit 2f00276
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/devices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ installed, you can use this device directly in PennyLane by specifying ``"ionq.q
import pennylane as qml
from pennylane_ionq import ops
dev = qml.device("ionq.qpu", backend="harmony", wires=2)
dev = qml.device("ionq.qpu", backend="aria-1", wires=2)
@qml.qnode(dev)
def circuit(x, y):
Expand Down
10 changes: 5 additions & 5 deletions pennylane_ionq/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ def reset(self, circuits_array_length=1):
if self.error_mitigation is not None:
self.job["error_mitigation"] = self.error_mitigation
if self.job["target"] == "qpu":
self.job["target"] = "qpu.harmony"
self.job["target"] = "qpu.aria-1"
warnings.warn(
"The ionq_qpu backend is deprecated. Defaulting to ionq_qpu.harmony.",
"The ionq_qpu backend is deprecated. Defaulting to ionq_qpu.aria-1.",
UserWarning,
stacklevel=2,
)
Expand Down Expand Up @@ -459,8 +459,8 @@ class QPUDevice(IonQDevice):
or iterable that contains unique labels for the subsystems as numbers (i.e., ``[-1, 0, 2]``)
or strings (``['ancilla', 'q1', 'q2']``).
gateset (str): the target gateset, either ``"qis"`` or ``"native"``. Defaults to ``qis``.
backend (str): Optional specifier for an IonQ backend. Can be ``"harmony"``, ``"aria-1"``, etc.
Default to ``harmony``.
backend (str): Optional specifier for an IonQ backend. Can be ``"aria-1"``, ``"aria-2"``, etc.
Default to ``aria-1``.
shots (int, list[int]): Number of circuit evaluations/random samples used to estimate
expectation values of observables. Defaults to 1024. If a list of integers is passed, the
circuit evaluations are batched over the list of shots.
Expand All @@ -486,7 +486,7 @@ def __init__(
*,
gateset="qis",
shots=1024,
backend="harmony",
backend="aria-1",
error_mitigation=None,
sharpen=None,
api_key=None,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def test_prob_no_results(self, d):
dev = qml.device(d, wires=1, shots=1)
assert dev.prob is None

@pytest.mark.parametrize("backend", ["harmony", "aria-1", "aria-2", "forte-1", None])
@pytest.mark.parametrize("backend", ["harmony", "aria-1", "aria-2", "forte-1", "forte-enterprise-1", "forte-enterprise-2", None])
def test_backend_initialization(self, backend):
"""Test that the device initializes with the correct backend."""
dev = qml.device(
Expand Down

0 comments on commit 2f00276

Please sign in to comment.