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

qiskit.transpiler.preset_passmanagers.level_0_pass_manager

level_0_pass_manager(pass_manager_config) GitHub(opens in a new tab)

Level 0 pass manager: no explicit optimization other than mapping to backend.

This pass manager applies the user-given initial layout. If none is given, a trivial layout consisting of mapping the i-th virtual qubit to the i-th physical qubit is used. Any unused physical qubit is allocated as ancilla space.

The pass manager then unrolls the circuit to the desired basis, and transforms the circuit to match the coupling map.

Note

In simulators where coupling_map=None, only the unrolling and optimization stages are done.

Parameters

pass_manager_config (PassManagerConfig) – configuration of the pass manager.

Return type

PassManager

Returns

a level 0 pass manager.

Raises

TranspilerError – if the passmanager config is invalid.

Was this page helpful?