Cove - A Practical Quantum Computer Programming Framework
GetAddN Method (XIndexes, YIndexes, ScratchIndexes, ResultIndexes)
NamespacesCove.LocalSimulationOperationsGetAddN(array<Int32>[]()[], array<Int32>[]()[], array<Int32>[]()[], array<Int32>[]()[]%)
Get the operation to perform add n over the specified indexes. After this is applied the result will be in all indexes of YIndexes and also the last ScratchIndexes qubit.
Declaration Syntax
C#Visual BasicVisual C++
public static GeneralSimulatedOperation[] GetAddN(
	int[] XIndexes,
	int[] YIndexes,
	int[] ScratchIndexes,
	ref int[] ResultIndexes
)
Public Shared Function GetAddN ( _
	XIndexes As Integer(), _
	YIndexes As Integer(), _
	ScratchIndexes As Integer(), _
	ByRef ResultIndexes As Integer() _
) As GeneralSimulatedOperation()
public:
static array<GeneralSimulatedOperation^>^ GetAddN(
	array<int>^ XIndexes, 
	array<int>^ YIndexes, 
	array<int>^ ScratchIndexes, 
	array<int>^% ResultIndexes
)
Parameters
XIndexes (array< Int32 >[]()[])
Indexes that represent the first number to ad