Interface for the swap operation. Direct implementations of this interface should be named OperationSwap.
Assembly: Cove.Base (Module: Cove.Base) Version: 126.96.36.199 (188.8.131.52)
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 two same sized operations into one.(Inherited from IQuantumOperation.)
Get the index of the first qubit in the register to swap when this operation is applied.
Get a string that shows the operations name and target. An example might be something like "CNOT: Control = 0, Target = 2".(Inherited from IQuantumOperation.)
Get the index of the second qubit in the register to swap when this operation is applied.
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.)
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.)
Set the target qubit of the first qubit to swap.
Set the target qubit of the second qubit to swap.
Set both target indexes to swap.
Tensor two operations into one combined one.(Inherited from IQuantumOperation.)
Get the string representation of the object(Inherited from ICoveObject.)