Cove - A Practical Quantum Computer Programming Framework
GetCarryInverse Method (CarryIndex, XIndex, YIndex, OutputCarryIndex)
NamespacesCove.LocalSimulationOperationsGetCarryInverse(Int32, Int32, Int32, Int32)
Return a series of simple operations that perform carry over the specified indexes.
Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
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.
Return Value

[Missing <returns> documentation for M:Cove.LocalSimulation.Operations.GetCarryInverse(System.Int32,System.Int32,System.Int32,System.Int32)]

Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if any of the indexes are less than 0.
DuplicateIndexesExceptionThrown if any of the index parameters are the same. All indexes must be unique.

Assembly: Cove.LocalSimulation (Module: Cove.LocalSimulation) Version: 1.0.0.0 (1.0.0.0)