qiskit-documentation/docs/api/qiskit/0.24/qiskit.transpiler.PassManag...

57 lines
4.4 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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: PassManagerConfig
description: API reference for qiskit.transpiler.PassManagerConfig
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.transpiler.PassManagerConfig
---
<span id="qiskit-transpiler-passmanagerconfig" />
# qiskit.transpiler.PassManagerConfig
<Class id="qiskit.transpiler.PassManagerConfig" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.16/qiskit/transpiler/passmanager_config.py" signature="PassManagerConfig(initial_layout=None, basis_gates=None, coupling_map=None, layout_method=None, routing_method=None, translation_method=None, scheduling_method=None, instruction_durations=None, backend_properties=None, seed_transpiler=None)" modifiers="class">
Pass Manager Configuration.
Initialize a PassManagerConfig object
**Parameters**
* **initial\_layout** ([*Layout*](qiskit.transpiler.Layout "qiskit.transpiler.Layout")) Initial position of virtual qubits on physical qubits.
* **basis\_gates** (*list*) List of basis gate names to unroll to.
* **coupling\_map** ([*CouplingMap*](qiskit.transpiler.CouplingMap "qiskit.transpiler.CouplingMap")) Directed graph represented a coupling map.
* **layout\_method** (*str*) the pass to use for choosing initial qubit placement.
* **routing\_method** (*str*) the pass to use for routing qubits on the architecture.
* **translation\_method** (*str*) the pass to use for translating gates to basis\_gates.
* **scheduling\_method** (*str*) the pass to use for scheduling instructions.
* **instruction\_durations** ([*InstructionDurations*](qiskit.transpiler.InstructionDurations "qiskit.transpiler.InstructionDurations")) Dictionary of duration (in dt) for each instruction.
* **backend\_properties** ([*BackendProperties*](qiskit.providers.models.BackendProperties "qiskit.providers.models.BackendProperties")) Properties returned by a backend, including information on gate errors, readout errors, qubit coherence times, etc.
* **seed\_transpiler** (*int*) Sets random seed for the stochastic parts of the transpiler.
### \_\_init\_\_
<Function id="qiskit.transpiler.PassManagerConfig.__init__" signature="__init__(initial_layout=None, basis_gates=None, coupling_map=None, layout_method=None, routing_method=None, translation_method=None, scheduling_method=None, instruction_durations=None, backend_properties=None, seed_transpiler=None)">
Initialize a PassManagerConfig object
**Parameters**
* **initial\_layout** ([*Layout*](qiskit.transpiler.Layout "qiskit.transpiler.Layout")) Initial position of virtual qubits on physical qubits.
* **basis\_gates** (*list*) List of basis gate names to unroll to.
* **coupling\_map** ([*CouplingMap*](qiskit.transpiler.CouplingMap "qiskit.transpiler.CouplingMap")) Directed graph represented a coupling map.
* **layout\_method** (*str*) the pass to use for choosing initial qubit placement.
* **routing\_method** (*str*) the pass to use for routing qubits on the architecture.
* **translation\_method** (*str*) the pass to use for translating gates to basis\_gates.
* **scheduling\_method** (*str*) the pass to use for scheduling instructions.
* **instruction\_durations** ([*InstructionDurations*](qiskit.transpiler.InstructionDurations "qiskit.transpiler.InstructionDurations")) Dictionary of duration (in dt) for each instruction.
* **backend\_properties** ([*BackendProperties*](qiskit.providers.models.BackendProperties "qiskit.providers.models.BackendProperties")) Properties returned by a backend, including information on gate errors, readout errors, qubit coherence times, etc.
* **seed\_transpiler** (*int*) Sets random seed for the stochastic parts of the transpiler.
</Function>
## Methods
| | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| [`__init__`](#qiskit.transpiler.PassManagerConfig.__init__ "qiskit.transpiler.PassManagerConfig.__init__")(\[initial\_layout, basis\_gates, …]) | Initialize a PassManagerConfig object |
</Class>