MainCircuitFactory
public struct MainCircuitFactory
extension MainCircuitFactory: CircuitFactory
Conforms CircuitFactory
. Use to create new Circuit
instances
-
Define performance and memory footprint of
See moreCircuit.unitary(withQubitCount:)
.Declaration
Swift
public enum UnitaryConfiguration
-
Define performance and memory footprint of
See moreCircuit.statevector(withInitialState:)
Declaration
Swift
public enum StatevectorConfiguration
-
Initialize a
MainCircuitFactory
instance.Declaration
Swift
public init(unitaryConfiguration: UnitaryConfiguration = .matrix(), statevectorConfiguration: StatevectorConfiguration = .direct())
Parameters
unitaryConfiguration
Defines how a unitary matrix is calculated. By default is set to
UnitaryConfiguration.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.statevectorConfiguration
Defines how a statevector is calculated. By default is set to
StatevectorConfiguration.direct
, 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
MainCircuitFactory
instance.