Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit Runtime client and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

TranspilationOptions

class TranspilationOptions(*args, **kwargs)

GitHub

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

Type: UnsetType | float

Default value: Unset

initial_layout

Type: UnsetType | dict | List

Default value: Unset

layout_method

Type: UnsetType | Literal['trivial', 'dense', 'noise_adaptive', 'sabre']

Default value: Unset

routing_method

Type: UnsetType | Literal['basic', 'lookahead', 'stochastic', 'sabre', 'none']

Default value: Unset

skip_transpilation

Type: bool

Default value: False


Methods

Was this page helpful?
Report a bug or request content on GitHub.