qiskit-documentation/docs/api/qiskit/0.41/qiskit_aer.noise.Relaxation...

71 lines
3.0 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: RelaxationNoisePass
description: API reference for qiskit_aer.noise.RelaxationNoisePass
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit_aer.noise.RelaxationNoisePass
---
# RelaxationNoisePass
<Class id="qiskit_aer.noise.RelaxationNoisePass" isDedicatedPage={true} github="https://github.com/qiskit/qiskit-aer/tree/stable/0.11/qiskit_aer/noise/passes/relaxation_noise_pass.py" signature="RelaxationNoisePass(t1s, t2s, dt=None, op_types=None, excited_state_populations=None)" modifiers="class">
Bases: [`qiskit_aer.noise.passes.local_noise_pass.LocalNoisePass`](qiskit_aer.noise.LocalNoisePass "qiskit_aer.noise.passes.local_noise_pass.LocalNoisePass")
Add duration dependent thermal relaxation noise after instructions.
Initialize RelaxationNoisePass.
**Parameters**
* **t1s** (`List`\[`float`]) List of T1 times in seconds for each qubit.
* **t2s** (`List`\[`float`]) List of T2 times in seconds for each qubit.
* **dt** (`Optional`\[`float`]) Backend sample time (resolution) in seconds. This is required for converting dt-unit op durations to times in scheduled circuits.
* **op\_types** (`Union`\[`type`, `Sequence`\[`type`], `None`]) Optional, the operation types to add relaxation to. If None relaxation will be added to all operations.
* **excited\_state\_populations** (`Optional`\[`List`\[`float`]]) Optional, list of excited state populations for each qubit at thermal equilibrium. If not supplied or obtained from the backend this will be set to 0 for each qubit.
## Methods
### name
<Function id="qiskit_aer.noise.RelaxationNoisePass.name" signature="RelaxationNoisePass.name()">
Return the name of the pass.
</Function>
### run
<Function id="qiskit_aer.noise.RelaxationNoisePass.run" signature="RelaxationNoisePass.run(dag)">
Run the LocalNoisePass pass on dag. :type dag: [`DAGCircuit`](qiskit.dagcircuit.DAGCircuit "qiskit.dagcircuit.dagcircuit.DAGCircuit") :param dag: DAG to be changed.
**Return type**
[`DAGCircuit`](qiskit.dagcircuit.DAGCircuit "qiskit.dagcircuit.dagcircuit.DAGCircuit")
**Returns**
A changed DAG.
**Raises**
[**TranspilerError**](qiskit.transpiler.TranspilerError "qiskit.transpiler.TranspilerError") if generated operation is not valid.
</Function>
## Attributes
### is\_analysis\_pass
<Attribute id="qiskit_aer.noise.RelaxationNoisePass.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_aer.noise.RelaxationNoisePass.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>
</Class>