PhaseShiftGate
public struct PhaseShiftGate
extension PhaseShiftGate: ConfigurableGate
A quantum gate used on genetic programming: PhaseShift
-
Initializes a
ConfigurableGate
instance with a given phase shift angle.Declaration
Swift
public init(radians: Double)
Parameters
radians
Phase shift angle in radians.
Return Value
A
ConfigurableGate
instance.
-
Declaration
Swift
public func makeFixed(inputs: [Int]) -> Result<Gate, EvolveCircuitError>