18
18
from numbers import Integral
19
19
from typing import List , Optional , Iterable , Tuple , Union
20
20
21
- from qiskit import transpile , assemble
21
+ from qiskit import transpile , assemble , QuantumCircuit
22
22
from qiskit .providers .options import Options
23
23
from qiskit .providers .backend import Backend
24
24
from qiskit .providers .basebackend import BaseBackend as LegacyBackend
@@ -85,7 +85,7 @@ def __init__(self, qubits: Iterable[int], experiment_type: Optional[str] = None,
85
85
86
86
def run (
87
87
self ,
88
- backend : " Backend" ,
88
+ backend : Backend ,
89
89
analysis : bool = True ,
90
90
experiment_data : Optional [ExperimentData ] = None ,
91
91
** kwargs ,
@@ -153,14 +153,14 @@ def analysis(cls, **analysis_options) -> "BaseAnalysis":
153
153
return cls .__analysis_class__ (** analysis_options )
154
154
155
155
@abstractmethod
156
- def circuits (self , backend = None ) -> List [" QuantumCircuit" ]:
156
+ def circuits (self , backend : Optional [ Backend ] = None ) -> List [QuantumCircuit ]:
157
157
"""Return a list of experiment circuits.
158
158
159
159
Args:
160
- backend (Backend) : Optional, a backend object.
160
+ backend: Optional, a backend object.
161
161
162
162
Returns:
163
- List[QuantumCircuit]: A list of :class:`QuantumCircuit`s.
163
+ A list of :class:`QuantumCircuit`s.
164
164
165
165
.. note:
166
166
These circuits should be on qubits ``[0, .., N-1]`` for an
@@ -173,10 +173,10 @@ def circuits(self, backend=None) -> List["QuantumCircuit"]:
173
173
174
174
def _transpile (
175
175
self ,
176
- circuits : Union [" QuantumCircuit" , List [" QuantumCircuit" ]],
177
- backend : Optional [" Backend" ] = None ,
176
+ circuits : Union [QuantumCircuit , List [QuantumCircuit ]],
177
+ backend : Optional [Backend ] = None ,
178
178
** transpile_options ,
179
- ) -> List [" QuantumCircuit" ]:
179
+ ) -> List [QuantumCircuit ]:
180
180
"""Custom transpilation of circuits for running on backend.
181
181
182
182
Subclasses may modify this method if they need to customize how
0 commit comments