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
ConfigurableGateinstance with a giventruthTable&gate.Throws
Declaration
Swift
public init(truthTable: [String], truthTableQubitCount: Int, gate: ConfigurableGate) throwsParameters
truthTableList of qubit combinations for which the given
gateis activated.truthTableQubitCountTotal number of qubits for all qubits combinations in
truthTable.gateAnother
ConfigurableGateinstance.Return Value
A
ConfigurableGateinstance.
-
Declaration
Swift
public func makeFixed(inputs: [Int]) -> Result<Gate, EvolveCircuitError>
OracleGate Structure Reference