|
2 | 2 |
|
3 | 3 | from collections import Counter, defaultdict |
4 | 4 | from logging import getLogger |
5 | | -from typing import Dict, Iterable, List, Optional, Tuple, Union, cast, Any, Generator |
| 5 | +from typing import Dict, Iterable, List, Optional, Tuple, Union, cast |
6 | 6 |
|
7 | 7 | import numpy as np |
8 | 8 | import pandas as pd |
9 | 9 | from mthree import M3Mitigation |
10 | 10 | from qiskit import QiskitError, QuantumCircuit, transpile |
11 | 11 | from qiskit.providers import JobV1 |
12 | | -from qiskit_ibm_runtime import RuntimeJobV2, RuntimeJob |
| 12 | +from qiskit_ibm_runtime import RuntimeJobV2 |
13 | 13 | from tqdm import tqdm |
14 | 14 |
|
15 | 15 | from qbench.batching import BatchJob, execute_in_batches |
@@ -147,7 +147,7 @@ def _extract_result_from_job( |
147 | 147 | return ResultForCircuit.parse_obj(result) |
148 | 148 |
|
149 | 149 |
|
150 | | -CircuitKey = Tuple[int, int, str, float] |
| 150 | +CircuitKey = Tuple[int, int, str, float, float] |
151 | 151 |
|
152 | 152 |
|
153 | 153 | def _collect_circuits_and_keys( |
@@ -207,6 +207,7 @@ def _iter_batches(batches: Iterable[BatchJob]) -> Iterable[Tuple[int, CircuitKey |
207 | 207 | for i, key in enumerate(tqdm(batch.keys, desc="Circuit", leave=False)) |
208 | 208 | ) |
209 | 209 |
|
| 210 | + |
210 | 211 | # def _iter_batches(batches: Iterable[BatchJob]) -> Generator[ |
211 | 212 | # tuple[int, tuple[int, Any], JobV1 | RuntimeJob | RuntimeJobV2], None, None]: |
212 | 213 | # """Iterate batches in a flat manner. |
|
0 commit comments