qiskit-documentation/docs/api/qiskit/0.40/qiskit.transpiler.preset_pa...

31 lines
1.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: generate_embed_passmanager
description: API reference for qiskit.transpiler.preset_passmanagers.common.generate_embed_passmanager
in_page_toc_min_heading_level: 1
python_api_type: function
python_api_name: qiskit.transpiler.preset_passmanagers.common.generate_embed_passmanager
---
# qiskit.transpiler.preset\_passmanagers.common.generate\_embed\_passmanager
<Function id="qiskit.transpiler.preset_passmanagers.common.generate_embed_passmanager" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/transpiler/preset_passmanagers/common.py" signature="generate_embed_passmanager(coupling_map)">
Generate a layout embedding [`PassManager`](qiskit.transpiler.PassManager "qiskit.transpiler.PassManager")
This is used to generate a [`PassManager`](qiskit.transpiler.PassManager "qiskit.transpiler.PassManager") object that can be used to expand and apply an initial layout to a circuit
**Parameters**
**coupling\_map** ([*CouplingMap*](qiskit.transpiler.CouplingMap "qiskit.transpiler.CouplingMap")) The coupling map for the backend to embed the circuit to.
**Returns**
**The embedding passmanager that assumes the layout property**
set has been set in earlier stages
**Return type**
[PassManager](qiskit.transpiler.PassManager "qiskit.transpiler.PassManager")
</Function>