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