- class RelaxationNoisePass(*args, **kwargs)#
Add duration dependent thermal relaxation noise after instructions.
t1s – List of T1 times in seconds for each qubit.
t2s – List of T2 times in seconds for each qubit.
dt – Backend sample time (resolution) in seconds. This is required for converting dt-unit op durations to times in scheduled circuits.
op_types – Optional, the operation types to add relaxation to. If None relaxation will be added to all operations.
excited_state_populations – 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.
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.
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).
- __call__(circuit: QuantumCircuit, property_set: PropertySet | dict | None = None) QuantumCircuit #
Runs the pass on circuit.
circuit – The dag on which the pass is run.
property_set – Input/output property set. An analysis pass might change the property set in-place.
If on transformation pass, the resulting QuantumCircuit. If analysis pass, the input circuit.
- execute(passmanager_ir: PassManagerIR, state: PassManagerState, callback: Callable = None) tuple[PassManagerIR, PassManagerState] #
Execute optimization task for input Qiskit IR.
passmanager_ir – Qiskit IR to optimize.
state – State associated with workflow execution by the pass manager itself.
callback – A callback function which is caller per execution of optimization task.
Optimized Qiskit IR and state of the workflow.
- name() str #
Name of the pass.
- run(dag: DAGCircuit) DAGCircuit #
Run the LocalNoisePass pass on dag. :param dag: DAG to be changed.
A changed DAG.
TranspilerError – if generated operation is not valid.