Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KetpuntoG committed Jul 25, 2024
1 parent cc3e25b commit f2f3efc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/capture/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ def enable_disable_plxpr():
(qml.ArbitraryStatePreparation, (jnp.ones(6), [2, 3]), {}),
(qml.ArbitraryStatePreparation, (jnp.zeros(14),), {"wires": [3, 2, 0]}),
(qml.ArbitraryStatePreparation, (), {"weights": jnp.ones(2), "wires": [1]}),
#(qml.BasisStatePreparation, (jnp.array([0, 1]), [2, 3]), {}),
#(qml.BasisStatePreparation, (jnp.ones(3),), {"wires": [3, 2, 0]}),
#(qml.BasisStatePreparation, (), {"basis_state": jnp.ones(1), "wires": [1]}),
(qml.BasisStatePreparation, (jnp.array([0, 1]), [2, 3]), {}),
(qml.BasisStatePreparation, (jnp.ones(3),), {"wires": [3, 2, 0]}),
(qml.BasisStatePreparation, (), {"basis_state": jnp.ones(1), "wires": [1]}),
(qml.CosineWindow, ([2, 3],), {}),
(qml.CosineWindow, (), {"wires": [2, 0, 1]}),
(qml.MottonenStatePreparation, (jnp.ones(4) / 2, [2, 3]), {}),
Expand Down
2 changes: 1 addition & 1 deletion tests/ops/qubit/test_state_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_adjoint_error_exception(op):
def test_BasisStatePreparation_is_deprecated():
"""Test that my_feature is deprecated."""
with pytest.warns(qml.PennyLaneDeprecationWarning, match="BasisStatePreparation is deprecated"):
_ = qml.BasisStatePreparation()
_ = qml.BasisStatePreparation([1,0], wires = [0,1])

@pytest.mark.parametrize(
"op, mat, base",
Expand Down

0 comments on commit f2f3efc

Please sign in to comment.