Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/bloqade/pyqrack/noise/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ def atom_loss_channel(

for qarg in active_qubits:
if interp.rng_state.uniform() <= stmt.prob:
sim_reg = qarg.ref.sim_reg
sim_reg.force_m(qarg.addr, 0)
qarg.ref.sim_reg.m(qarg.addr)
qarg.drop()

return ()
2 changes: 1 addition & 1 deletion test/pyqrack/runtime/noise/native/test_pauli.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_atom_loss():
rng_state.choice.side_effect = ["y"]
rng_state.uniform.return_value = 0.5
sim_reg = run_mock(test_atom_loss, rng_state)
sim_reg.assert_has_calls([call.mcz([0], 1), call.force_m(0, 0), call.y(1)])
sim_reg.assert_has_calls([call.mcz([0], 1), call.m(0), call.y(1)])


def test_cz_pauli_channel_true():
Expand Down
2 changes: 1 addition & 1 deletion test/pyqrack/runtime/test_dyn_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def ghz(n: int):
dynamic_qubits=True,
)

N = 50
N = 20

result = target.multi_run(ghz, 100, N)
result = Counter("".join(str(int(bit)) for bit in bits) for bits in result)
Expand Down