|
18 | 18 | from abc import ABC |
19 | 19 | from abc import abstractmethod |
20 | 20 | import datetime |
21 | | -from typing import List, Union, Iterable, Tuple |
| 21 | +from typing import List, Union, Tuple |
22 | 22 |
|
23 | 23 | from qiskit.circuit.gate import Instruction |
24 | | -from qiskit.utils.deprecate_pulse import deprecate_pulse_dependency |
25 | 24 |
|
26 | 25 |
|
27 | 26 | class Backend: |
@@ -202,7 +201,7 @@ def instruction_durations(self): |
202 | 201 | @property |
203 | 202 | @abstractmethod |
204 | 203 | def max_circuits(self): |
205 | | - """The maximum number of circuits (or Pulse schedules) that can be |
| 204 | + """The maximum number of circuits that can be |
206 | 205 | run in a single job. |
207 | 206 |
|
208 | 207 | If there is no limit this will return None |
@@ -267,18 +266,6 @@ def meas_map(self) -> List[List[int]]: |
267 | 266 | """ |
268 | 267 | raise NotImplementedError |
269 | 268 |
|
270 | | - @property |
271 | | - @deprecate_pulse_dependency(is_property=True) |
272 | | - def instruction_schedule_map(self): |
273 | | - """Return the :class:`~qiskit.pulse.InstructionScheduleMap` for the |
274 | | - instructions defined in this backend's target.""" |
275 | | - return self._instruction_schedule_map |
276 | | - |
277 | | - @property |
278 | | - def _instruction_schedule_map(self): |
279 | | - """An alternative private path to be used internally to avoid pulse deprecation warnings.""" |
280 | | - return self.target._get_instruction_schedule_map() |
281 | | - |
282 | 269 | def qubit_properties( |
283 | 270 | self, qubit: Union[int, List[int]] |
284 | 271 | ) -> Union[QubitProperties, List[QubitProperties]]: |
@@ -313,77 +300,6 @@ def qubit_properties( |
313 | 300 | return self.target.qubit_properties[qubit] |
314 | 301 | return [self.target.qubit_properties[q] for q in qubit] |
315 | 302 |
|
316 | | - @deprecate_pulse_dependency |
317 | | - def drive_channel(self, qubit: int): |
318 | | - """Return the drive channel for the given qubit. |
319 | | -
|
320 | | - This is required to be implemented if the backend supports Pulse |
321 | | - scheduling. |
322 | | -
|
323 | | - Returns: |
324 | | - DriveChannel: The Qubit drive channel |
325 | | -
|
326 | | - Raises: |
327 | | - NotImplementedError: if the backend doesn't support querying the |
328 | | - measurement mapping |
329 | | - """ |
330 | | - raise NotImplementedError |
331 | | - |
332 | | - @deprecate_pulse_dependency |
333 | | - def measure_channel(self, qubit: int): |
334 | | - """Return the measure stimulus channel for the given qubit. |
335 | | -
|
336 | | - This is required to be implemented if the backend supports Pulse |
337 | | - scheduling. |
338 | | -
|
339 | | - Returns: |
340 | | - MeasureChannel: The Qubit measurement stimulus line |
341 | | -
|
342 | | - Raises: |
343 | | - NotImplementedError: if the backend doesn't support querying the |
344 | | - measurement mapping |
345 | | - """ |
346 | | - raise NotImplementedError |
347 | | - |
348 | | - @deprecate_pulse_dependency |
349 | | - def acquire_channel(self, qubit: int): |
350 | | - """Return the acquisition channel for the given qubit. |
351 | | -
|
352 | | - This is required to be implemented if the backend supports Pulse |
353 | | - scheduling. |
354 | | -
|
355 | | - Returns: |
356 | | - AcquireChannel: The Qubit measurement acquisition line. |
357 | | -
|
358 | | - Raises: |
359 | | - NotImplementedError: if the backend doesn't support querying the |
360 | | - measurement mapping |
361 | | - """ |
362 | | - raise NotImplementedError |
363 | | - |
364 | | - @deprecate_pulse_dependency |
365 | | - def control_channel(self, qubits: Iterable[int]): |
366 | | - """Return the secondary drive channel for the given qubit |
367 | | -
|
368 | | - This is typically utilized for controlling multiqubit interactions. |
369 | | - This channel is derived from other channels. |
370 | | -
|
371 | | - This is required to be implemented if the backend supports Pulse |
372 | | - scheduling. |
373 | | -
|
374 | | - Args: |
375 | | - qubits: Tuple or list of qubits of the form |
376 | | - ``(control_qubit, target_qubit)``. |
377 | | -
|
378 | | - Returns: |
379 | | - List[ControlChannel]: The multi qubit control line. |
380 | | -
|
381 | | - Raises: |
382 | | - NotImplementedError: if the backend doesn't support querying the |
383 | | - measurement mapping |
384 | | - """ |
385 | | - raise NotImplementedError |
386 | | - |
387 | 303 | def set_options(self, **fields): |
388 | 304 | """Set the options fields for the backend |
389 | 305 |
|
@@ -433,9 +349,8 @@ def run(self, run_input, **options): |
433 | 349 | class can handle either situation. |
434 | 350 |
|
435 | 351 | Args: |
436 | | - run_input (QuantumCircuit or Schedule or ScheduleBlock or list): An |
437 | | - individual or a list of :class:`.QuantumCircuit`, |
438 | | - :class:`~qiskit.pulse.ScheduleBlock`, or :class:`~qiskit.pulse.Schedule` objects to |
| 352 | + run_input (QuantumCircuit or list): An |
| 353 | + individual or a list of :class:`.QuantumCircuit` objects to |
439 | 354 | run on the backend. |
440 | 355 | options: Any kwarg options to pass to the backend for running the |
441 | 356 | config. If a key is also present in the options |
|
0 commit comments