MainNoiseCircuitFactory
public struct MainNoiseCircuitFactory
extension MainNoiseCircuitFactory: NoiseCircuitFactory
Conforms NoiseCircuitFactory
. Use to create new NoiseCircuit
instances
-
Define behaviour of
See moreNoiseCircuit.densityMatrix(withInitialState:)
Declaration
Swift
public enum DensityMatrixConfiguration
-
Initialize a
MainNoiseCircuitFactory
instance.Declaration
Swift
public init(densityMatrixConfiguration: DensityMatrixConfiguration = .matrix())
Parameters
densityMatrixConfiguration
Defines how a density matrix is calculated. By default is set to
DensityMatrixConfiguration.matrix
, however the performance of each configuration depends on each use case. It is recommended to try different configurations so see how long an execution takes and how much memory is required.Return Value
A
MainNoiseCircuitFactory
instance.
-
Check
CircuitFactory.makeNoiseCircuit(gates:)
Declaration
Swift
public func makeNoiseCircuit(quantumOperators: [QuantumOperator]) -> NoiseCircuit