Skip to content

Commit d33a958

Browse files
authored
Merge branch 'master' into partial-ms-entanglement
2 parents 49c37b8 + 0adf43d commit d33a958

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
run: |
6262
python -m pip install --upgrade pip
6363
pip install -r requirements.txt
64-
pip install wheel pytest pytest-cov pytest-mock flaky --upgrade
64+
pip install wheel pytest pytest-benchmark pytest-cov pytest-mock flaky --upgrade
6565
6666
- name: Install Plugin
6767
run: |
@@ -75,6 +75,7 @@ jobs:
7575
pl-device-test --device=ionq.simulator --tb=short --skip-ops --shots=10000
7676
7777
- name: Upload coverage to Codecov
78-
uses: codecov/codecov-action@v1
78+
uses: codecov/codecov-action@v4
7979
with:
80+
token: ${{ secrets.codecov_token }}
8081
file: ./coverage.xml

pennylane_ionq/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class IonQDevice(QubitDevice):
101101

102102
# Note: unlike QubitDevice, IonQ does not support QubitUnitary,
103103
# and therefore does not support the Hermitian observable.
104-
observables = {"PauliX", "PauliY", "PauliZ", "Hadamard", "Identity"}
104+
observables = {"PauliX", "PauliY", "PauliZ", "Hadamard", "Identity", "Prod"}
105105

106106
def __init__(
107107
self,

tests/test_api_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ def __init__(self, client=None, api_key=None):
358358
res = WithID(api_key="test")
359359
res.reload()
360360

361-
362361
def test_create_created(self, monkeypatch):
363362
"""
364363
Tests a successful Job creatioin with a mock POST response. Asserts that all fields on

tests/test_device.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,7 @@ def test_probability(self):
243243
mock_prob.return_value = uniform_prob
244244
assert np.array_equal(dev.probability(), uniform_prob)
245245

246-
@pytest.mark.parametrize(
247-
"backend", ["harmony", "aria-1", "aria-2", "forte-1", None]
248-
)
246+
@pytest.mark.parametrize("backend", ["harmony", "aria-1", "aria-2", "forte-1", None])
249247
def test_backend_initialization(self, backend):
250248
"""Test that the device initializes with the correct backend."""
251249
dev = qml.device(

0 commit comments

Comments
 (0)