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