EvolveCircuitError
public enum EvolveCircuitError : Error
Errors throwed by GeneticFactory.evolveCircuit(configuration:useCases:gates:)
-
Throwed if
gate
requires more qubits thanGeneticUseCase.Circuit.qubitCount
specifiesDeclaration
Swift
case gateInputCountIsBiggerThanUseCaseCircuitQubitCount(gate: ConfigurableGate)
-
Throwed if
useCases
is an empty listDeclaration
Swift
case useCaseListIsEmpty
-
Throwed when a circuit evolved to solve
useCase
throwederror
while measuring the probabilities of all possible outputsDeclaration
Swift
case useCaseMeasurementThrowedError(useCase: GeneticUseCase, error: StatevectorError)
-
Throwed when
GeneticUseCase.Circuit.qubitCount
is not the same in alluseCases
Declaration
Swift
case useCasesDoNotSpecifySameCircuitQubitCount