Return the operations that perform Sum.
Declaration Syntax
C# | Visual Basic | Visual C++ |
List<IQuantumOperation> Sum( int CarryIndex, int XIndex, int YIndex )
Function Sum ( _ CarryIndex As Integer, _ XIndex As Integer, _ YIndex As Integer _ ) As List(Of IQuantumOperation)
List<IQuantumOperation^>^ Sum( int CarryIndex, int XIndex, int YIndex )
Parameters
- 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)
Return Value
The quantum operations that perform
sum over the specified qubits.
Exceptions
Exception | Condition |
---|---|
DuplicateIndexesException | Thrown
if any of the indexes passed in are the same. All
indexes must be unique. |