Cove - A Practical Quantum Computer Programming Framework
OperationToffoli Method (Indexes)
Perform the Toffoli (controlled controlled not) operation to the register.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister OperationToffoli(
	int[] Indexes
Public Function OperationToffoli ( _
	Indexes As Integer() _
) As IQuantumRegister
virtual IQuantumRegister^ OperationToffoli(
	array<int>^ Indexes
) sealed
Indexes (array< Int32 >[]()[])
The indexes of the qubits that the operation applies to. The first two indexes are the control and the third is the target.
Return Value
A reference to this register after the operation has been applied.
IndexOutOfRangeExceptionThrown if any of the indexes are out of range.
SizeMismatchExceptionThrown if there are not three elements in the Indexes array.
DuplicateIndexesExceptionThrown if the indexes specified refer to the same qubit.
ArgumentNullExceptionThrown if Indexes is null

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