Return the series of operations that performs the Sum operation.
| C# | Visual Basic | Visual C++ |
public static GeneralSimulatedOperation[] GetSum( int CarryIndex, int XIndex, int YIndex )
Public Shared Function GetSum ( _ CarryIndex As Integer, _ XIndex As Integer, _ YIndex As Integer _ ) As GeneralSimulatedOperation()
public: static array<GeneralSimulatedOperation^>^ GetSum( int CarryIndex, int XIndex, int YIndex )
- CarryIndex (Int32)
- The index of the carry qubit.
- XIndex (Int32)
- The index of the first (x) qubit to sum.
- YIndex (Int32)
- The index of the second (y) qubit to sum.
An array of operations that performs sum over the specified
indexes.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown if any of
the indexes are less than 0. |
| DuplicateIndexesException | Thrown if any of
the index parameters are the same. All indexes must be unique. |