Construct an instance of the Rotate Z operation, which will rotate a qubit about the
Z axis by RotateBy.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public OperationRotateZ( int TargetIndex, double RotateBy )
Public Sub New ( _ TargetIndex As Integer, _ RotateBy As Double _ )
public: OperationRotateZ( int TargetIndex, double RotateBy )
Parameters
- TargetIndex (Int32)
- Target index of this operation.
- RotateBy (Double)
- Angle to rotate about the Z axis by.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if the target
is less than 0. |
NotImplementedException | This method is not yet
implemented. |