Sum Method (CarryIndex, XIndex, YIndex)
Cove - A Practical Quantum Computer Programming Framework
Sum Method (CarryIndex, XIndex, YIndex)
NamespacesCove.BaseIQuantumAlgorithmsSum(Int32, Int32, Int32)
Return the operations that perform Sum.
Declaration Syntax
C#Visual BasicVisual C++
List<IQuantumOperation> Sum(
	int CarryIndex,
	int XIndex,
	int YIndex
)
Function Sum ( _
	CarryIndex As Integer, _
	XIndex As Integer, _
	YIndex As Integer _
) As List(Of IQuantumOperation)
List<IQuantumOperation^>^ Sum(
	int CarryIndex, 
	int XIndex, 
	int YIndex
)
Parameters
CarryIndex (Int32)
The index of the carry qubit. This remains unchanged after the operations are applied.
XIndex (Int32)
The index of the X qubit. This remains unchanged after the operations are applied.
YIndex (Int32)
The index of the Y qubit. CarryIndex + XIndex + YIndex (mod 2 addition)
Return Value
The quantum operations that perform sum over the specified qubits.
Exceptions
ExceptionCondition
DuplicateIndexesExceptionThrown if any of the indexes passed in are the same. All indexes must be unique.

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