Noise
public struct Noise
extension Noise: QuantumOperatorConvertible
extension Noise: SimplifiedQuantumOperatorConvertible
extension Noise: SimplifiedNoiseConvertible
extension Noise: Hashable
A generic quantum noise operator
-
Declaration
Swift
public var quantumOperator: QuantumOperator { get }
-
Declaration
Swift
public var simplifiedQuantumOperator: SimplifiedQuantumOperator { get }
-
Returns a noise channel that applies a bit flip to
target
with givenprobability
Declaration
Swift
public static func bitFlip(probability: Double, target: Int) -> Noise
-
Returns a generic noise channel that applies
matrices
to any number ofinputs
. Allmatrices
should accept the same number ofinputs
and the addition of the adjointedmatrices
by themselves should be equal to identity matrixDeclaration
Swift
public static func matrices(matrices: [Matrix], inputs: [Int]) -> Noise
-
Returns a noise channel that applies a phase damping to
target
with givenprobability
Declaration
Swift
public static func phaseDamping(probability: Double, target: Int) -> Noise
-
Declaration
Swift
public var simplifiedNoise: SimplifiedNoise { get }
-
Declaration
Swift
public static func == (lhs: `Self`, rhs: `Self`) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)