SetIndexes Method (FirstControlIndex, SecondControlIndex, TargetIndex)
Cove - A Practical Quantum Computer Programming Framework
SetIndexes Method (FirstControlIndex, SecondControlIndex, TargetIndex)
NamespacesCove.BaseIOperationToffoliSetIndexes(Int32, Int32, Int32)
Set the indexes of qubits in a register when this operation is applied.
Declaration Syntax
C#Visual BasicVisual C++
void SetIndexes(
	int FirstControlIndex,
	int SecondControlIndex,
	int TargetIndex
)
Sub SetIndexes ( _
	FirstControlIndex As Integer, _
	SecondControlIndex As Integer, _
	TargetIndex As Integer _
)
void SetIndexes(
	int FirstControlIndex, 
	int SecondControlIndex, 
	int TargetIndex
)
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>.
Return Value
A reference to this operation after this method has been performed.
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.Base (Module: Cove.Base) Version: 1.0.0.0 (1.0.0.0)