Skip to content

Commit

Permalink
Update src/qibo/backends/clifford.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Candido <[email protected]>
  • Loading branch information
renatomello and alecandido authored Feb 19, 2024
1 parent da1d351 commit b2f5673
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qibo/backends/clifford.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def execute_circuit_repeated(self, circuit, nshots: int = 1000, initial_state=No
samples = []
for _ in range(nshots):
res = self.execute_circuit(circuit_copy, initial_state, nshots=1)
[measurement.result.reset() for measurement in circuit_copy.measurements]
for measurement in circuit_copy.measurements:
measurement.result.reset()
samples.append(res.samples())
samples = self.np.vstack(samples)

Expand Down

0 comments on commit b2f5673

Please sign in to comment.