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
ConfigurableGateinstance with a givengate.Throws
Declaration
Swift
public init(gate: ConfigurableGate, controlCount: Int) throwsParameters
gateAnother
ConfigurableGateinstance.controlCountTotal number of control qubits.
Return Value
A
ConfigurableGateinstance.
-
Declaration
Swift
public func makeFixed(inputs: [Int]) -> Result<Gate, EvolveCircuitError>
ControlledGate Structure Reference