Cove - A Practical Quantum Computer Programming Framework
Sum Method (CarryIndex, XIndex, YIndex)
NamespacesCove.LocalSimulationQuantumAlgorithmsSum(Int32, Int32, Int32)
Return the operations that perform Sum.
Declaration Syntax
C#Visual BasicVisual C++
public List<IQuantumOperation> Sum(
	int CarryIndex,
	int XIndex,
	int YIndex
)
Public Function Sum ( _
	CarryIndex As Integer, _
	XIndex As Integer, _
	YIndex As Integer _
) As List(Of IQuantumOperation)
public:
virtual List<IQuantumOperation^>^ Sum(
	int CarryIndex, 
	int XIndex, 
	int YIndex
) sealed
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.LocalSimulation (Module: Cove.LocalSimulation) Version: 1.0.0.0 (1.0.0.0)