Skip to content

Commit

Permalink
revert batch_obs False
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisAlfredoNu committed Sep 9, 2024
1 parent a1cac8e commit fbba326
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
5 changes: 0 additions & 5 deletions pennylane_lightning/lightning_kokkos/lightning_kokkos.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,6 @@ def __init__( # pylint: disable=too-many-arguments
"https://docs.pennylane.ai/projects/lightning/en/stable/dev/installation.html."
)

if batch_obs:
raise DeviceError(
"Lightning Kokkos does not support batch observables option. 'batch_obs' should be False"
)

super().__init__(
wires=wires,
c_dtype=c_dtype,
Expand Down
29 changes: 0 additions & 29 deletions tests/test_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ def test_one_qubit_circuit(
):
"""Test a single-qubit circuit"""

if (
lightning_dev_version == lightning_backend_batch_obs_dev
and device_name == "lightning.kokkos"
):
pytest.skip(reason="Lightning Kokkos does not support batch_obs")

monkeypatch.setenv("OMP_NUM_THREADS", str(num_threads))

def circuit(measurement):
Expand Down Expand Up @@ -124,12 +118,6 @@ def test_two_qubit_circuit(
):
"""Test a two-qubit circuit"""

if (
lightning_dev_version == lightning_backend_batch_obs_dev
and device_name == "lightning.kokkos"
):
pytest.skip(reason="Lightning Kokkos does not support batch_obs")

monkeypatch.setenv("OMP_NUM_THREADS", str(num_threads))

def circuit(measurement):
Expand Down Expand Up @@ -179,12 +167,6 @@ def test_three_qubit_circuit(
):
"""Test a three-qubit circuit"""

if (
lightning_dev_version == lightning_backend_batch_obs_dev
and device_name == "lightning.kokkos"
):
pytest.skip(reason="Lightning Kokkos does not support batch_obs")

monkeypatch.setenv("OMP_NUM_THREADS", str(num_threads))

def circuit(measurement):
Expand Down Expand Up @@ -242,12 +224,6 @@ def test_four_qubit_circuit(
):
"""Test a four-qubit circuit"""

if (
lightning_dev_version == lightning_backend_batch_obs_dev
and device_name == "lightning.kokkos"
):
pytest.skip(reason="Lightning Kokkos does not support batch_obs")

monkeypatch.setenv("OMP_NUM_THREADS", str(num_threads))

def circuit(measurement):
Expand Down Expand Up @@ -308,11 +284,6 @@ def test_n_qubit_circuit(
self, monkeypatch, stateprep, wires, lightning_dev_version, num_threads
):
"""Test an n-qubit circuit"""
if (
lightning_dev_version == lightning_backend_batch_obs_dev
and device_name == "lightning.kokkos"
):
pytest.skip(reason="Lightning Kokkos does not support batch_obs")

monkeypatch.setenv("OMP_NUM_THREADS", str(num_threads))

Expand Down

0 comments on commit fbba326

Please sign in to comment.