SetIndexes Method (ControlIndex, FirstSwapIndex, SecondSwapIndex)
Cove - A Practical Quantum Computer Programming Framework
SetIndexes Method (ControlIndex, FirstSwapIndex, SecondSwapIndex)
NamespacesCove.BaseIOperationFredkinSetIndexes(Int32, Int32, Int32)
Set the indexes of qubits in a register when this operation is applied.
Declaration Syntax
C#Visual BasicVisual C++
IOperationFredkin SetIndexes(
	int ControlIndex,
	int FirstSwapIndex,
	int SecondSwapIndex
)
Function SetIndexes ( _
	ControlIndex As Integer, _
	FirstSwapIndex As Integer, _
	SecondSwapIndex As Integer _
) As IOperationFredkin
IOperationFredkin^ SetIndexes(
	int ControlIndex, 
	int FirstSwapIndex, 
	int SecondSwapIndex
)
Parameters
ControlIndex (Int32)
The index of the control qubit.
FirstSwapIndex (Int32)
The index of the first qubit to swap.
SecondSwapIndex (Int32)
The index of the second qubit to swap.
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)