IQuantumOperation Interface
Cove - A Practical Quantum Computer Programming Framework
IQuantumOperation Interface
NamespacesCove.BaseIQuantumOperation
The interface for operations applied to qubits. This is meant to serve as a base interface, and there are no direct implementations.
Declaration Syntax
C#Visual BasicVisual C++
public interface IQuantumOperation : ICoveObject
Public Interface IQuantumOperation _
	Implements ICoveObject
public interface class IQuantumOperation : ICoveObject
Members
All MembersMethods



IconMemberDescription
Combine(IQuantumOperation)
Combine two same sized operations into one.

GetOperationAndTargets()()()
Get a string that shows the operations name and target. An example might be something like "CNOT: Control = 0, Target = 2".

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.

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.

Tensor(IQuantumOperation)
Tensor two operations into one combined one.

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)