qiskit-documentation/docs/api/qiskit-ibm-runtime/qiskit_ibm_runtime.options....

47 lines
2.2 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: TranspilationOptions
description: API reference for qiskit_ibm_runtime.options.TranspilationOptions
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit_ibm_runtime.options.TranspilationOptions
---
# TranspilationOptions
<Class id="qiskit_ibm_runtime.options.TranspilationOptions" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.25/qiskit_ibm_runtime/options/transpilation_options.py#L38-L75" signature="TranspilationOptions(*args, **kwargs)" modifiers="class">
Transpilation options. This is only used by V1 primitives.
**Parameters**
* **skip\_transpilation** Whether to skip transpilation. Default is False.
* **initial\_layout** Initial position of virtual qubits on physical qubits. See `qiskit.compiler.transpile` for more information.
* **layout\_method** Name of layout selection pass. One of trivial, dense, noise\_adaptive, sabre.
* **routing\_method** Name of routing pass. One of basic, lookahead, stochastic, sabre, none.
* **approximation\_degree** heuristic dial used for circuit approximation (1.0=no approximation, 0.0=maximal approximation)
## Attributes
### approximation\_degree
<Attribute id="qiskit_ibm_runtime.options.TranspilationOptions.approximation_degree" attributeTypeHint="UnsetType | float" attributeValue="Unset" />
### initial\_layout
<Attribute id="qiskit_ibm_runtime.options.TranspilationOptions.initial_layout" attributeTypeHint="UnsetType | dict | List" attributeValue="Unset" />
### layout\_method
<Attribute id="qiskit_ibm_runtime.options.TranspilationOptions.layout_method" attributeTypeHint="UnsetType | Literal['trivial', 'dense', 'noise_adaptive', 'sabre']" attributeValue="Unset" />
### routing\_method
<Attribute id="qiskit_ibm_runtime.options.TranspilationOptions.routing_method" attributeTypeHint="UnsetType | Literal['basic', 'lookahead', 'stochastic', 'sabre', 'none']" attributeValue="Unset" />
### skip\_transpilation
<Attribute id="qiskit_ibm_runtime.options.TranspilationOptions.skip_transpilation" attributeTypeHint="bool" attributeValue="False" />
## Methods
</Class>