ControlledGate
public struct ControlledGate
extension ControlledGate: ConfigurableGate
A quantum gate used on genetic programming: Controlled
-
Errors throwed by
See moreControlledGate.init(gate:controlCount:)
Declaration
Swift
public enum InitError : Error
-
Initializes a
ConfigurableGate
instance with a givengate
.Throws
Declaration
Swift
public init(gate: ConfigurableGate, controlCount: Int) throws
Parameters
gate
Another
ConfigurableGate
instance.controlCount
Total number of control qubits.
Return Value
A
ConfigurableGate
instance.
-
Declaration
Swift
public func makeFixed(inputs: [Int]) -> Result<Gate, EvolveCircuitError>