Skip to content

Commit

Permalink
Merge pull request #103 from chensgit169/stable/0.3
Browse files Browse the repository at this point in the history
Stable/0.3: fix measure setting bug in from_qasm
  • Loading branch information
Zhaoyilunnn committed Oct 28, 2023
2 parents 523cd5d + 2efa95b commit dad3743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quafu/circuits/quantum_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def from_openqasm(self, openqasm: str):
inds = [int(indst) for indst in indstr]
mb = inds[0]
cb = inds[1]
self.measures[mb] = cb
self.measure([mb], [cb])
measured_qubits.append(mb)
else:
qbs = operations_qbs[1]
Expand Down

0 comments on commit dad3743

Please sign in to comment.