MainCircuitFactory

public struct MainCircuitFactory
extension MainCircuitFactory: CircuitFactory

Conforms CircuitFactory. Use to create new Circuit instances

Public types

Public init methods

  • 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

    AMainCircuitFactory instance.

CircuitFactory methods