Skip to content

Commit

Permalink
Merge branch 'master' into partial-ms-entanglement
Browse files Browse the repository at this point in the history
  • Loading branch information
splch authored Apr 16, 2024
2 parents 49c37b8 + 0adf43d commit d33a958
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install wheel pytest pytest-cov pytest-mock flaky --upgrade
pip install wheel pytest pytest-benchmark pytest-cov pytest-mock flaky --upgrade
- name: Install Plugin
run: |
Expand All @@ -75,6 +75,7 @@ jobs:
pl-device-test --device=ionq.simulator --tb=short --skip-ops --shots=10000
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.codecov_token }}
file: ./coverage.xml
2 changes: 1 addition & 1 deletion pennylane_ionq/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class IonQDevice(QubitDevice):

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

def __init__(
self,
Expand Down
1 change: 0 additions & 1 deletion tests/test_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ def __init__(self, client=None, api_key=None):
res = WithID(api_key="test")
res.reload()


def test_create_created(self, monkeypatch):
"""
Tests a successful Job creatioin with a mock POST response. Asserts that all fields on
Expand Down
4 changes: 1 addition & 3 deletions tests/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ def test_probability(self):
mock_prob.return_value = uniform_prob
assert np.array_equal(dev.probability(), uniform_prob)

@pytest.mark.parametrize(
"backend", ["harmony", "aria-1", "aria-2", "forte-1", None]
)
@pytest.mark.parametrize("backend", ["harmony", "aria-1", "aria-2", "forte-1", 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 d33a958

Please sign in to comment.