Cove - A Practical Quantum Computer Programming Framework
SetIndexes Method (FirstControlIndex, SecondControlIndex, TargetIndex)
NamespacesCove.LocalSimulationOperationToffoliSetIndexes(Int32, Int32, Int32)
Set the indexes of qubits in a register when this operation is applied.
Declaration Syntax
C#Visual BasicVisual C++
public void SetIndexes(
	int FirstControlIndex,
	int SecondControlIndex,
	int TargetIndex
)
Public Sub SetIndexes ( _
	FirstControlIndex As Integer, _
	SecondControlIndex As Integer, _
	TargetIndex As Integer _
)
public:
virtual void SetIndexes(
	int FirstControlIndex, 
	int SecondControlIndex, 
	int TargetIndex
) sealed
Parameters
FirstControlIndex (Int32)
The index of the first control qubit.
SecondControlIndex (Int32)
The index of the second control qubit.
TargetIndex (Int32)
The index of the target qubit. The Not operation will be applied to this qubit if the control indexes are |1>.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if any of the parameters are less than 0.
DuplicateIndexesExceptionThrown if the same index is specified for more than one parameter.

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