102 lines
5.6 KiB
Plaintext
102 lines
5.6 KiB
Plaintext
---
|
||
title: NoiseAdaptiveLayout
|
||
description: API reference for qiskit.transpiler.passes.NoiseAdaptiveLayout
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: class
|
||
python_api_name: qiskit.transpiler.passes.NoiseAdaptiveLayout
|
||
---
|
||
|
||
# qiskit.transpiler.passes.NoiseAdaptiveLayout
|
||
|
||
<Class id="qiskit.transpiler.passes.NoiseAdaptiveLayout" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.17/qiskit/transpiler/passes/layout/noise_adaptive_layout.py" signature="NoiseAdaptiveLayout(*args, **kwargs)" modifiers="class">
|
||
Choose a noise-adaptive Layout based on current calibration data for the backend.
|
||
|
||
> This pass associates a physical qubit (int) to each virtual qubit of the circuit (Qubit), using calibration data.
|
||
>
|
||
> The pass implements the qubit mapping method from: Noise-Adaptive Compiler Mappings for Noisy Intermediate-Scale Quantum Computers Prakash Murali, Jonathan M. Baker, Ali Javadi-Abhari, Frederic T. Chong, Margaret R. Martonosi ASPLOS 2019 (arXiv:1901.11054).
|
||
|
||
<Function signature="Ordering of edges">
|
||
Map qubits edge-by-edge in the order of decreasing frequency of occurrence in the program dag.
|
||
</Function>
|
||
|
||
### Initialization
|
||
|
||
<Function id="qiskit.transpiler.passes.NoiseAdaptiveLayout.Initialization" signature="Initialization()">
|
||
If an edge exists with both endpoints unmapped, pick the best available hardware cx to execute this edge. Iterative step: When an edge exists with one endpoint unmapped, map that endpoint to a location which allows maximum reliability for CNOTs with previously mapped qubits. In the end if there are unmapped qubits (which don't participate in any CNOT), map them to any available hardware qubit.
|
||
</Function>
|
||
|
||
### Notes
|
||
|
||
<Function id="qiskit.transpiler.passes.NoiseAdaptiveLayout.Notes" signature="Notes()">
|
||
even though a layout is not strictly a property of the DAG, in the transpiler architecture it is best passed around between passes by being set in property\_set.
|
||
</Function>
|
||
|
||
NoiseAdaptiveLayout initializer.
|
||
|
||
**Parameters**
|
||
|
||
**backend\_prop** ([*BackendProperties*](qiskit.providers.models.BackendProperties "qiskit.providers.models.BackendProperties")) – backend properties object
|
||
|
||
**Raises**
|
||
|
||
[**TranspilerError**](qiskit.transpiler.TranspilerError "qiskit.transpiler.TranspilerError") – if invalid options
|
||
|
||
### \_\_init\_\_
|
||
|
||
<Function id="qiskit.transpiler.passes.NoiseAdaptiveLayout.__init__" signature="__init__(backend_prop)">
|
||
NoiseAdaptiveLayout initializer.
|
||
|
||
**Parameters**
|
||
|
||
**backend\_prop** ([*BackendProperties*](qiskit.providers.models.BackendProperties "qiskit.providers.models.BackendProperties")) – backend properties object
|
||
|
||
**Raises**
|
||
|
||
[**TranspilerError**](qiskit.transpiler.TranspilerError "qiskit.transpiler.TranspilerError") – if invalid options
|
||
</Function>
|
||
|
||
## Methods
|
||
|
||
| | |
|
||
| ------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
|
||
| [`__init__`](#qiskit.transpiler.passes.NoiseAdaptiveLayout.__init__ "qiskit.transpiler.passes.NoiseAdaptiveLayout.__init__")(backend\_prop) | NoiseAdaptiveLayout initializer. |
|
||
| [`name`](#qiskit.transpiler.passes.NoiseAdaptiveLayout.name "qiskit.transpiler.passes.NoiseAdaptiveLayout.name")() | Return the name of the pass. |
|
||
| [`run`](#qiskit.transpiler.passes.NoiseAdaptiveLayout.run "qiskit.transpiler.passes.NoiseAdaptiveLayout.run")(dag) | Run the NoiseAdaptiveLayout pass on dag. |
|
||
|
||
## Attributes
|
||
|
||
| | |
|
||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
|
||
| [`is_analysis_pass`](#qiskit.transpiler.passes.NoiseAdaptiveLayout.is_analysis_pass "qiskit.transpiler.passes.NoiseAdaptiveLayout.is_analysis_pass") | Check if the pass is an analysis pass. |
|
||
| [`is_transformation_pass`](#qiskit.transpiler.passes.NoiseAdaptiveLayout.is_transformation_pass "qiskit.transpiler.passes.NoiseAdaptiveLayout.is_transformation_pass") | Check if the pass is a transformation pass. |
|
||
|
||
### is\_analysis\_pass
|
||
|
||
<Attribute id="qiskit.transpiler.passes.NoiseAdaptiveLayout.is_analysis_pass">
|
||
Check if the pass is an analysis pass.
|
||
|
||
If the pass is an AnalysisPass, that means that the pass can analyze the DAG and write the results of that analysis in the property set. Modifications on the DAG are not allowed by this kind of pass.
|
||
</Attribute>
|
||
|
||
### is\_transformation\_pass
|
||
|
||
<Attribute id="qiskit.transpiler.passes.NoiseAdaptiveLayout.is_transformation_pass">
|
||
Check if the pass is a transformation pass.
|
||
|
||
If the pass is a TransformationPass, that means that the pass can manipulate the DAG, but cannot modify the property set (but it can be read).
|
||
</Attribute>
|
||
|
||
### name
|
||
|
||
<Function id="qiskit.transpiler.passes.NoiseAdaptiveLayout.name" signature="name()">
|
||
Return the name of the pass.
|
||
</Function>
|
||
|
||
### run
|
||
|
||
<Function id="qiskit.transpiler.passes.NoiseAdaptiveLayout.run" signature="run(dag)">
|
||
Run the NoiseAdaptiveLayout pass on dag.
|
||
</Function>
|
||
</Class>
|
||
|