About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
RelaxationNoisePass
class RelaxationNoisePass(t1s, t2s, dt=None, op_types=None, excited_state_populations=None)
Bases: 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
RelaxationNoisePass.name()
Return the name of the pass.
run
RelaxationNoisePass.run(dag)
Run the LocalNoisePass pass on dag. :type dag: DAGCircuit
:param dag: DAG to be changed.
Return type
Returns
A changed DAG.
Raises
TranspilerError – if generated operation is not valid.
Attributes
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.
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).
Was this page helpful?
Report a bug or request content on GitHub.