Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version

qiskit.pulse.transforms.block_to_schedule

block_to_schedule(block)

GitHub(opens in a new tab)

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.