OracleGate
public struct OracleGate
extension OracleGate: ConfigurableGate
A quantum gate used on genetic programming: Oracle
-
Errors throwed by
See moreOracleGate.init(truthTable:truthTableQubitCount:gate:)
Declaration
Swift
public enum InitError : Error
-
Initializes a
ConfigurableGate
instance with a giventruthTable
&gate
.Throws
Declaration
Swift
public init(truthTable: [String], truthTableQubitCount: Int, gate: ConfigurableGate) throws
Parameters
truthTable
List of qubit combinations for which the given
gate
is activated.truthTableQubitCount
Total number of qubits for all qubits combinations in
truthTable
.gate
Another
ConfigurableGate
instance.Return Value
A
ConfigurableGate
instance.
-
Declaration
Swift
public func makeFixed(inputs: [Int]) -> Result<Gate, EvolveCircuitError>