qiskit.pulse.ScheduleBlock.initialize_from¶
-
classmethod
ScheduleBlock.
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 ofblock
is used by default.
- Return type
ScheduleBlock
- Returns
New block object with name and metadata.
- Raises
PulseError – When other_program does not provide necessary information.