RotationGate

public struct RotationGate
extension RotationGate: ConfigurableGate

A quantum gate used on genetic programming: Rotation

Public init methods

  • Initializes a ConfigurableGate instance with a rotation of radians around axis.

    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.

ConfigurableGate methods