Return the operations to perform the inverse carry.

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

- CarryIndex (Int32)
- The index of the carry qubit. Remains unchanged once the operations are applied.
- XIndex (Int32)
- The index of the X qubit. Remains unchanged once the operations are applied.
- YIndex (Int32)
- The index of the Y qubit. After the operations are applied this will be X + Y (mod 2 addition)
- CarryPrimeIndex (Int32)
- The index of the carry prime qubit. Will be x(x + y) + yc + c' on output.

The operations to apply the carry inverse.

Exception | Condition |
---|---|
DuplicateIndexesException | Thrown if any of the indexes
specified are duplicates. |