Return a series of simple operations that perform
carry over the specified indexes.
| C# | Visual Basic | Visual C++ |
public static GeneralSimulatedOperation[] GetCarryInverse( int CarryIndex, int XIndex, int YIndex, int OutputCarryIndex )
Public Shared Function GetCarryInverse ( _ CarryIndex As Integer, _ XIndex As Integer, _ YIndex As Integer, _ OutputCarryIndex As Integer _ ) As GeneralSimulatedOperation()
public: static array<GeneralSimulatedOperation^>^ GetCarryInverse( int CarryIndex, int XIndex, int YIndex, int OutputCarryIndex )
- CarryIndex (Int32)
- The index of the carry qubit.
- XIndex (Int32)
- Index of the first qubit to add.
- YIndex (Int32)
- Index of the second qubit to add.
- OutputCarryIndex (Int32)
- The index of the output carry index, which can be feed into CarryIndex of a subsequent carry. This qubit should be set to 0 on input, and is not reset to this if not.
[Missing <returns> documentation for M:Cove.LocalSimulation.Operations.GetCarryInverse(System.Int32,System.Int32,System.Int32,System.Int32)]
| 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. |