Return the operations that perform Sum.

C# | Visual Basic | Visual C++ |
public List<IQuantumOperation> Sum( int CarryIndex, int XIndex, int YIndex )
Public Function Sum ( _ CarryIndex As Integer, _ XIndex As Integer, _ YIndex As Integer _ ) As List(Of IQuantumOperation)
public: virtual List<IQuantumOperation^>^ Sum( int CarryIndex, int XIndex, int YIndex ) sealed

- CarryIndex (Int32)
- The index of the carry qubit. This remains unchanged after the operations are applied.
- XIndex (Int32)
- The index of the X qubit. This remains unchanged after the operations are applied.
- YIndex (Int32)
- The index of the Y qubit. CarryIndex + XIndex + YIndex (mod 2 addition)

The quantum operations that perform sum over the specified qubits.

Exception | Condition |
---|---|
DuplicateIndexesException | Thrown if any of the indexes
passed in are the same. All indexes must be unique. |