Skip to content

Commit

Permalink
stop testing a wire value of None
Browse files Browse the repository at this point in the history
  • Loading branch information
albi3ro committed May 22, 2024
1 parent 0dcba44 commit 1ee0da6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/data/attributes/operator/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@

pauli_ops = [
op_cls(wires)
for op_cls, wires in itertools.product(
[qml.PauliX, qml.PauliY, qml.PauliZ], [0, 1, "q", None, [1]]
)
for op_cls, wires in itertools.product([qml.PauliX, qml.PauliY, qml.PauliZ], [0, 1, "q", [1]])
]

identity = [qml.Identity(wires) for wires in [0, 1, "q", None, [1, "a"]]]
identity = [qml.Identity(wires) for wires in [0, 1, "q", [1, "a"]]]

hamiltonians = [
qml.Hamiltonian(*args)
Expand Down

0 comments on commit 1ee0da6

Please sign in to comment.