InitError
public enum InitError : Error
Errors throwed by GeneticUseCase.Circuit.init(input:output:)
-
Throwed when
GeneticUseCase.Circuit.inputandGeneticUseCase.Circuit.outputdo not have the same sizeDeclaration
Swift
case circuitInputAndOutputHaveToHaveSameSize -
Throwed if
GeneticUseCase.Circuit.outputis not composed exclusively of 0’s and 1’sDeclaration
Swift
case circuitOutputHasToBeANonEmptyStringComposedOnlyOfZerosAndOnes -
Throwed if the
GeneticUseCase.Circuit.inputprovided is emptyDeclaration
Swift
case circuitQubitCountHasToBeBiggerThanZero -
Throwed if
GeneticUseCase.TruthTable.qubitCountis 0Declaration
Swift
case truthTableQubitCountHasToBeBiggerThanZeroToMakeOracle
InitError Enumeration Reference