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] committed Dec 11, 2023
1 parent 6e0a55f commit b4413e1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/qibo/backends/clifford.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,8 @@ def execute_circuit(self, circuit, initial_state=None, nshots: int = 1000):
)

def execute_circuit_repeated(self, circuit, initial_state=None, nshots: int = 1000):
"""Execute a Clifford circuits ``nshots`` times.
"""Execute a Clifford circuits ``nshots`` times.
This is used for all the simulations that involve repeated execution.
For instance when collapsing measurement or noise channels are present.
Expand Down Expand Up @@ -654,7 +654,12 @@ def execute_circuit_repeated(self, circuit, initial_state=None, nshots: int = 10
return result

def sample_shots(
self, state, qubits: Union[tuple, list], nqubits: int, nshots: int, collapse: bool = False
self,
state,
qubits: Union[tuple, list],
nqubits: int,
nshots: int,
collapse: bool = False,
):
"""Sample shots by measuring the selected qubits from the provided state tableu.
Expand Down

0 comments on commit b4413e1

Please sign in to comment.