IOperationToffoli Interface
Cove - A Practical Quantum Computer Programming Framework
IOperationToffoli Interface
NamespacesCove.BaseIOperationToffoli
Interface for the Toffoli operation, which is a double controlled not or controlled controlled not. Direct implementations of this interface should be named OperationToffoli.
Declaration Syntax
C#Visual BasicVisual C++
public interface IOperationToffoli : IQuantumOperation, 
	ICoveObject
Public Interface IOperationToffoli _
	Implements IQuantumOperation, ICoveObject
public interface class IOperationToffoli : IQuantumOperation, 
	ICoveObject
Members
All MembersMethods



IconMemberDescription
Clone()()()
Return a clone (deep copy) of the current operation. This operation returned can be modified without any impact to this object. Unlike quantum registers, quantum operations cannot be in superposition- hence a clone of them does not violate the no-cloning theorem.

Combine(IQuantumOperation)
Combine two same sized operations into one.
(Inherited from IQuantumOperation.)
GetFirstControlIndex()()()
Get the index of the first control qubit in the register when this operation is applied.

GetOperationAndTargets()()()
Get a string that shows the operations name and target. An example might be something like "CNOT: Control = 0, Target = 2".
(Inherited from IQuantumOperation.)
GetSecondControlIndex()()()
Get the index of the second control qubit in the register when this operation is applied.

GetTargetIndex()()()
Get the index of the target qubit when this operation is applied.

IsValidOperation()()()
Is this a valid quantum operation? All quantum operations must be unitary, so this allows for all operations to be checked before they are applied to registers.
(Inherited from IQuantumOperation.)
NumberOfQubitsOperatesOn()()()
Returns the number of qubits that the operation operates on. For example a CNot operation would return 2 since there are two qubits, target and control.
(Inherited from IQuantumOperation.)
SetFirstControlIndex(Int32)
Set the first control index.

SetIndexes(Int32, Int32, Int32)
Set the indexes of qubits in a register when this operation is applied.

SetSecondControlIndex(Int32)
Set the second control index.

SetTargetlIndex(Int32)
Set the target index.

Tensor(IQuantumOperation)
Tensor two operations into one combined one.
(Inherited from IQuantumOperation.)
ToString()()()
Get the string representation of the object
(Inherited from ICoveObject.)

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