Skip to content

Commit

Permalink
del it instead
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryChen97 committed Nov 11, 2024
1 parent a11734f commit 296436f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions frontend/test/pytest/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,6 @@ def basic_entangler_layers(weights):
assert np.allclose(interpreted_fn(params), jitted_fn(params))


@pytest.mark.filterwarnings("ignore::pennylane.PennyLaneDeprecationWarning")
def test_basis_state_preparation(backend):
"""Test basis state preparation."""

def basis_state_preparation(basis_state):
qml.BasisState(basis_state, wires=range(4))
return [qml.expval(qml.PauliZ(wires=i)) for i in range(4)]

device = qml.device(backend, wires=4)
params = jnp.array([0, 1, 1, 0.0])
interpreted_fn = qml.QNode(basis_state_preparation, device)
jitted_fn = qjit(interpreted_fn)
assert np.allclose(interpreted_fn(params), jitted_fn(params))


def test_mottonen_state_preparation(backend):
"""Test mottonen state preparation."""

Expand Down

0 comments on commit 296436f

Please sign in to comment.