Skip to content

Commit

Permalink
Merge pull request #594 from toddytharmonkey/compiler-opt-changes-hamsim
Browse files Browse the repository at this point in the history
fix -ranp crashes for non-method 3
  • Loading branch information
rtvuser1 authored Aug 2, 2024
2 parents 4753aae + e0acad1 commit 564019b
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 564019b

Please sign in to comment.