Cove - A Practical Quantum Computer Programming Framework
OperationToffoli Method (Indexes)
NamespacesCove.LocalSimulationQuantumRegisterOperationToffoli(array<Int32>[]()[])
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
public:
virtual IQuantumRegister^ OperationToffoli(
	array<int>^ Indexes
) sealed
Parameters
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.
Exceptions
ExceptionCondition
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: 1.0.0.0 (1.0.0.0)