Cove - A Practical Quantum Computer Programming Framework
OperationToffoli Constructor (FirstControlIndex, SecondControlIndex, TargetIndex)
NamespacesCove.LocalSimulationOperationToffoliOperationToffoli(Int32, Int32, Int32)
Initializes a new instance of the OperationToffoli class.
Declaration Syntax
C#Visual BasicVisual C++
public OperationToffoli(
	int FirstControlIndex,
	int SecondControlIndex,
	int TargetIndex
)
Public Sub New ( _
	FirstControlIndex As Integer, _
	SecondControlIndex As Integer, _
	TargetIndex As Integer _
)
public:
OperationToffoli(
	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>.
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)