39 lines
2.8 KiB
Plaintext
39 lines
2.8 KiB
Plaintext
---
|
||
title: generate_translation_passmanager
|
||
description: API reference for qiskit.transpiler.preset_passmanagers.common.generate_translation_passmanager
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.transpiler.preset_passmanagers.common.generate_translation_passmanager
|
||
---
|
||
|
||
# qiskit.transpiler.preset\_passmanagers.common.generate\_translation\_passmanager
|
||
|
||
<Function id="qiskit.transpiler.preset_passmanagers.common.generate_translation_passmanager" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/transpiler/preset_passmanagers/common.py" signature="generate_translation_passmanager(target, basis_gates=None, method='translator', approximation_degree=None, coupling_map=None, backend_props=None, unitary_synthesis_method='default', unitary_synthesis_plugin_config=None, hls_config=None)">
|
||
Generate a basis translation [`PassManager`](qiskit.transpiler.PassManager "qiskit.transpiler.PassManager")
|
||
|
||
**Parameters**
|
||
|
||
* **target** ([*Target*](qiskit.transpiler.Target "qiskit.transpiler.Target")) – the [`Target`](qiskit.transpiler.Target "qiskit.transpiler.Target") object representing the backend
|
||
* **basis\_gates** (*list*) – A list of str gate names that represent the basis gates on the backend target
|
||
* **method** (*str*) – The basis translation method to use
|
||
* **approximation\_degree** (*float*) – The heuristic approximation degree to use. Can be between 0 and 1.
|
||
* **coupling\_map** ([*CouplingMap*](qiskit.transpiler.CouplingMap "qiskit.transpiler.CouplingMap")) – the coupling map of the backend in case synthesis is done on a physical circuit. The directionality of the coupling\_map will be taken into account if pulse\_optimize is True/None and natural\_direction is True/None.
|
||
* **unitary\_synthesis\_plugin\_config** (*dict*) – The optional dictionary plugin configuration, this is plugin specific refer to the specified plugin’s documentation for how to use.
|
||
* **backend\_props** ([*BackendProperties*](qiskit.providers.models.BackendProperties "qiskit.providers.models.BackendProperties")) – Properties of a backend to synthesize for (e.g. gate fidelities).
|
||
* **unitary\_synthesis\_method** (*str*) – The unitary synthesis method to use
|
||
* **hls\_config** (*HLSConfig*) – An optional configuration class to use for [`HighLevelSynthesis`](qiskit.transpiler.passes.HighLevelSynthesis "qiskit.transpiler.passes.HighLevelSynthesis") pass. Specifies how to synthesize various high-level objects.
|
||
|
||
**Returns**
|
||
|
||
The basis translation pass manager
|
||
|
||
**Return type**
|
||
|
||
[PassManager](qiskit.transpiler.PassManager "qiskit.transpiler.PassManager")
|
||
|
||
**Raises**
|
||
|
||
[**TranspilerError**](qiskit.transpiler.TranspilerError "qiskit.transpiler.TranspilerError") – If the `method` kwarg is not a valid value
|
||
</Function>
|
||
|