Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for backendV2 in from_backend and _to_schedule_list #249

Merged
5 changes: 4 additions & 1 deletion qiskit_dynamics/backend/dynamics_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def defaults(self) -> PulseDefaults:
@classmethod
def from_backend(
cls,
backend: Union[BackendV1, BackendV2],
backend: BackendV1,
subsystem_list: Optional[List[int]] = None,
rotating_frame: Optional[Union[Array, RotatingFrame, str]] = "auto",
evaluation_mode: str = "dense",
Expand Down Expand Up @@ -609,6 +609,9 @@ def from_backend(

Args:
backend: The ``Backend`` instance to build the :class:`.DynamicsBackend` from.
Note that even if the `Backend` is :class:`~qiskit.providers.backend.BackendV2`,
only :class:`~qiskit.providers.backend.BackendV2` with ``configuration`` and
``defaults`` can be used.
to24toro marked this conversation as resolved.
Show resolved Hide resolved
subsystem_list: The list of qubits in the backend to include in the model.
rotating_frame: Rotating frame argument for the internal :class:`.Solver`. Defaults to
``"auto"``, allowing this method to pick a rotating frame.
Expand Down