Share via


ApplyIdleNoise operation

Fully qualified name: Std.Diagnostics.ApplyIdleNoise

operation ApplyIdleNoise(qubit : Qubit) : Unit

Summary

Applies configured noise to a qubit.

Description

This operation applies configured noise to a qubit during simulation. For example, if configured noise is a bit-flip noise with 5% probability, the X gate will be applied with 5% probability. If no noise is configured, no noise is applied. This is useful to simulate noise during idle periods. It could also be used to apply noise immediately after qubit allocation.

Input

qubit

The qubit to which noise is applied.