RotationGate
public struct RotationGate
extension RotationGate: ConfigurableGate
A quantum gate used on genetic programming: Rotation
-
Initializes a
ConfigurableGate
instance with a rotation ofradians
aroundaxis
.Declaration
Swift
public init(axis: Gate.Axis, radians: Double)
Parameters
axis
Rotation will happen around this axis.
radians
Rotation in radians.
Return Value
A
ConfigurableGate
instance.
-
Declaration
Swift
public func makeFixed(inputs: [Int]) -> Result<Gate, EvolveCircuitError>