Cove - A Practical Quantum Computer Programming Framework
GetSum Method (CarryIndex, XIndex, YIndex)
NamespacesCove.LocalSimulationOperationsGetSum(Int32, Int32, Int32)
Return the series of operations that performs the Sum operation.
Declaration Syntax
C#Visual BasicVisual C++
public static GeneralSimulatedOperation[] GetSum(
	int CarryIndex,
	int XIndex,
	int YIndex
)
Public Shared Function GetSum ( _
	CarryIndex As Integer, _
	XIndex As Integer, _
	YIndex As Integer _
) As GeneralSimulatedOperation()
public:
static array<GeneralSimulatedOperation^>^ GetSum(
	int CarryIndex, 
	int XIndex, 
	int YIndex
)
Parameters
CarryIndex (Int32)
The index of the carry qubit.
XIndex (Int32)
The index of the first (x) qubit to sum.
YIndex (Int32)
The index of the second (y) qubit to sum.
Return Value
An array of operations that performs sum over the specified indexes.
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)