Skip to content

Commit

Permalink
Merge pull request #595 from SRI-International/compiler-opt-changes-h…
Browse files Browse the repository at this point in the history
…amsim

fix -ranp -m 1 crash
  • Loading branch information
rtvuser1 authored Aug 2, 2024
2 parents 26c4103 + 564019b commit 11eecc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hamlib/qiskit/hamlib_simulation_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ def create_circuit(
circuit, bitstring = convert_to_mirror_circuit(circuit_without_initial_state, random_pauli = True, init_state=init_state)

# convert_to_mirror_circuit adds its own measurement gates
if not random_pauli_flag:
if not (random_pauli_flag and method == 3):
circuit.measure_all()

return circuit, bitstring, ham_op, evo

else:
Expand Down

0 comments on commit 11eecc3

Please sign in to comment.