Noise

public struct Noise
extension Noise: QuantumOperatorConvertible
extension Noise: SimplifiedQuantumOperatorConvertible
extension Noise: SimplifiedNoiseConvertible
extension Noise: Hashable

A generic quantum noise operator

QuantumOperatorConvertible methods

SimplifiedQuantumOperatorConvertible methods

Public class methods

  • Returns a noise channel that applies a bit flip to target with given probability

    Declaration

    Swift

    public static func bitFlip(probability: Double, target: Int) -> Noise
  • Returns a generic noise channel that applies matrices to any number of inputs. All matrices should accept the same number of inputs and the addition of the adjointed matrices by themselves should be equal to identity matrix

    Declaration

    Swift

    public static func matrices(matrices: [Matrix], inputs: [Int]) -> Noise
  • Returns a noise channel that applies a phase damping to target with given probability

    Declaration

    Swift

    public static func phaseDamping(probability: Double, target: Int) -> Noise

SimplifiedNoiseConvertible methods

Hashable methods

  • Declaration

    Swift

    public static func == (lhs: `Self`, rhs: `Self`) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)