Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chmwzc committed Dec 19, 2023
1 parent fa5ee3f commit 7b65dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_ucc.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def test_ucc_bk():
# Check gates are correct
assert all(
control.name == test.name and control.target_qubits == test.target_qubits
for control, test in zip(gate_list, circuit.queue)
for control, test in zip(gate_list, list(circuit.queue))
)
# Check that only two parametrised gates
assert len(circuit.get_parameters()) == 2
Expand All @@ -208,4 +208,4 @@ def test_ucc_bk():
def test_ucc_ferm_qubit_map_error():
"""If unknown fermion to qubit map used"""
with pytest.raises(KeyError):
ucc_circuit(2, [0, 1], "Unknown")
ucc_circuit(2, [0, 1], ferm_qubit_map="Unknown")

0 comments on commit 7b65dc3

Please sign in to comment.