Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf committed Nov 3, 2023
1 parent f2bf0c1 commit 11ce6a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pytket/extensions/qiskit/backends/aer.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def process_circuits(

replace_implicit_swaps = self.supports_state or self.supports_unitary

for (n_shots, seed, batch), indices in zip(circuit_batches, batch_order):
for (n_shots, seed, batch), indices in zip(circuit_batches, batch_order): # type: ignore
qcs = []
for tkc in batch:
qc = tk_to_qiskit(tkc, replace_implicit_swaps)
Expand Down
2 changes: 1 addition & 1 deletion pytket/extensions/qiskit/backends/ibm.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def process_circuits(
simplify_initial = kwargs.get("simplify_initial", False)

batch_id = 0 # identify batches for debug purposes only
for (n_shots, n_seeds, batch), indices in zip(circuit_batches, batch_order):
for (n_shots, n_seeds, batch), indices in zip(circuit_batches, batch_order): # type: ignore
for chunk in itertools.zip_longest(
*([iter(zip(batch, indices))] * self._max_per_job)
):
Expand Down
2 changes: 1 addition & 1 deletion pytket/extensions/qiskit/backends/ibmq_emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def process_circuits(
)

batch_id = 0 # identify batches for debug purposes only
for (n_shots, seed, batch), indices in zip(circuit_batches, batch_order):
for (n_shots, seed, batch), indices in zip(circuit_batches, batch_order): # type: ignore
for chunk in itertools.zip_longest(
*([iter(zip(batch, indices))] * self._ibmq._max_per_job)
):
Expand Down

0 comments on commit 11ce6a6

Please # to comment.