Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
a-corni committed Feb 15, 2024
1 parent c60eb9a commit ba005ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,10 @@ def test_noisy_xy(matrices, masked_qubit, noise, result, n_collapse_ops):
"atom2": True,
"atom3": False,
}
assert len(sim._hamiltonian._collapse_ops) // 4 == n_collapse_ops
assert (
len(sim._hamiltonian._collapse_ops) // len(simple_reg.qubits)
== n_collapse_ops
)
assert sim.run().sample_final_state() == Counter(result)


Expand Down

0 comments on commit ba005ad

Please sign in to comment.