Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and stavros11 committed Aug 7, 2024
1 parent 445386d commit c32fe97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qibo/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ def samples(self, binary: bool = True, registers: bool = False):
if self.measurements[0].result.has_samples():
self._samples = self.backend.np.concatenate(
[
self.backend.cast(gate.result.samples(), dtype=self.backend.np.int32)
self.backend.cast(
gate.result.samples(), dtype=self.backend.np.int32
)
for gate in self.measurements
],
axis=1,
Expand Down

0 comments on commit c32fe97

Please sign in to comment.