Skip to content

Commit

Permalink
Remove fwd test skippings
Browse files Browse the repository at this point in the history
  • Loading branch information
antalszava committed Nov 25, 2022
1 parent afa2d85 commit 5bc7220
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/returntypes/test_jax_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ def cost(a, device):
with pytest.raises(ValueError, match="Unknown interface"):
cost(a, device=dev)

# TODO
@pytest.mark.skip()
def test_forward_mode(self, interface, mocker):
"""Test that forward mode uses the `device.execute_and_gradients` pathway"""
dev = qml.device("default.qubit", wires=1)
Expand Down Expand Up @@ -653,9 +651,6 @@ def cost_fn(a, p, device):
def test_independent_expval(self, execute_kwargs, interface):
"""Tests computing an expectation value that is independent of trainable
parameters."""
# TODO
if execute_kwargs.get("mode", None) == "forward":
pytest.skip("TODO")

dev = qml.device("default.qubit", wires=2)
params = jnp.array([0.1, 0.2, 0.3])
Expand Down Expand Up @@ -933,10 +928,6 @@ def cost(a, cache):
def test_independent_expval(self, execute_kwargs):
"""Tests computing an expectation value that is independent trainable
parameters."""
# TODO
if execute_kwargs.get("mode", None) == "forward":
pytest.skip("TODO")

dev = qml.device("default.qubit", wires=2)
params = jnp.array([0.1, 0.2, 0.3])

Expand Down Expand Up @@ -971,8 +962,6 @@ def test_vector_valued_qnode(self, execute_kwargs, ret, out_dim, expected_type):

dev = qml.device("default.qubit", wires=2)
params = jnp.array([0.1, 0.2, 0.3])
if execute_kwargs.get("mode", None) == "forward":
pytest.skip("TODO")

grad_meth = (
execute_kwargs["gradient_kwargs"]["method"]
Expand Down Expand Up @@ -1103,8 +1092,6 @@ def cost(x, y, device, interface, ek):
for r, e in zip(res, exp):
assert jnp.allclose(r, e, atol=1e-7)

# TODO
@pytest.mark.skip()
def test_multiple_expvals_raises_fwd_device_grad(self, execute_kwargs):
"""Tests computing multiple expectation values in a tape."""
fwd_mode = execute_kwargs.get("mode", "not forward") == "forward"
Expand Down

0 comments on commit 5bc7220

Please sign in to comment.