Cove - A Practical Quantum Computer Programming Framework
OperationToffoli Method (FirstControlIndex, SecondControlIndex, TargetIndex)
NamespacesCove.LocalSimulationQuantumRegisterOperationToffoli(Int32, Int32, Int32)
Apply the Toffoli (controlled controlled not) operation to the register.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister OperationToffoli(
	int FirstControlIndex,
	int SecondControlIndex,
	int TargetIndex
)
Public Function OperationToffoli ( _
	FirstControlIndex As Integer, _
	SecondControlIndex As Integer, _
	TargetIndex As Integer _
) As IQuantumRegister
public:
virtual IQuantumRegister^ OperationToffoli(
	int FirstControlIndex, 
	int SecondControlIndex, 
	int TargetIndex
) sealed
Parameters
FirstControlIndex (Int32)
Index of the first control qubit.
SecondControlIndex (Int32)
Index of the second control qubit.
TargetIndex (Int32)
Index of the target qubit.
Return Value
A reference to this register after the operation has been applied.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if any of the indexes are out of range.
DuplicateIndexesExceptionThrown if the indexes specified refer to the same qubit.

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