qiskit.pulse.Schedule.initialize_from¶
-
classmethod
Schedule.
initialize_from
(other_program, name=None)[source]¶ Create new schedule object with metadata of another schedule object.
- Parameters
other_program (
Any
) – Qiskit program that provides metadata to new object.name (
Optional
[str
]) – Name of new schedule. Name ofschedule
is used by default.
- Return type
Schedule
- Returns
New schedule object with name and metadata.
- Raises
PulseError – When other_program does not provide necessary information.