Interface for the CNot (controlled Not) operation. Direct implementations of this interface
should be named OperationCNot.

C# | Visual Basic | Visual C++ |
public interface IOperationCNot : IQuantumOperation, ICoveObject
Public Interface IOperationCNot _ Implements IQuantumOperation, ICoveObject
public interface class IOperationCNot : IQuantumOperation, ICoveObject

All Members | Methods | ||||
Icon | Member | Description |
---|---|---|
![]() | 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.) |
![]() | FlipTargetAndControlIndexes()()() |
Whatever the target and control indexes are, they will be flipped. Example: if index 0 is control
and index 1 is target, after this call index 0 will be target and index 1 will be control.
|
![]() | GetControlIndex()()() |
Get the index of the control qubit when this operation is applied: either 0 or 1.
|
![]() | 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.) |
![]() | GetTargetIndex()()() |
Get the index of the target qubit when this operation is applied: either 0 or 1.
|
![]() | 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.) |
![]() | SetIndexes(Int32, Int32) |
Set the control and target indexes when this operation is applied.
The parameters must be (0, 1) or (1, 0).
|
![]() | Tensor(IQuantumOperation) |
Tensor two operations into one combined one.
(Inherited from IQuantumOperation.) |
![]() | ToString()()() |
Get the string representation of the object
(Inherited from ICoveObject.) |