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.flatten

flatten(program)

GitHub(opens in a new tab)

Flatten (inline) any called nodes into a Schedule tree with no nested children.

Parameters

program (Schedule) – Pulse program to remove nested structure.

Return type

Schedule

Returns

Flatten pulse program.

Raises

PulseError – When invalid data format is given.

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