Skip to content

Commit

Permalink
qsharp format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Vasilevsky committed Nov 5, 2024
1 parent f410233 commit 0302cf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/std/src/Std/Diagnostics.qs
Original file line number Diff line number Diff line change
Expand Up @@ -408,19 +408,19 @@ operation ApplyIdleNoise(qubit : Qubit) : Unit {

/// # Summary
/// The bit flip noise with probability `p`.
function BitFlipNoise(p: Double) : (Double, Double, Double) {
function BitFlipNoise(p : Double) : (Double, Double, Double) {
(p, 0.0, 0.0)
}

/// # Summary
/// The phase flip noise with probability `p`.
function PhaseFlipNoise(p: Double) : (Double, Double, Double) {
function PhaseFlipNoise(p : Double) : (Double, Double, Double) {
(0.0, 0.0, p)
}

/// # Summary
/// The depolarizing noise with probability `p`.
function DepolarizingNoise(p: Double) : (Double, Double, Double) {
function DepolarizingNoise(p : Double) : (Double, Double, Double) {
(p / 3.0, p / 3.0, p / 3.0)
}

Expand Down

0 comments on commit 0302cf9

Please sign in to comment.