Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.pulse.transforms.block_to_schedule

block_to_schedule(block)

GitHub

Convert ScheduleBlock to Schedule.

Parameters

block (ScheduleBlock) – A ScheduleBlock to convert.

Return type

Schedule

Returns

Scheduled pulse program.

Raises

  • UnassignedDurationError – When any instruction duration is not assigned.
  • PulseError – When the alignment context duration is shorter than the schedule duration.
Note

This transform may insert barriers in between contexts.

Was this page helpful?
Report a bug or request content on GitHub.