Cove - A Practical Quantum Computer Programming Framework
Operations Class
NamespacesCove.LocalSimulationOperations
Static instances of all the operations so they can be used easily.
Declaration Syntax
C#Visual BasicVisual C++
public static class Operations
Public NotInheritable Class Operations
public ref class Operations abstract sealed
Members
All MembersMethodsProperties



IconMemberDescription
CNot
The controlled not (CNot) opeartion.

ControlledU
The controlled U operation.

Fredkin
The Fredkin operation (controlled swap).

GetAddN(array<Int32>[]()[], array<Int32>[]()[], array<Int32>[]()[], array<Int32>[]()[]%)
Get the operation to perform add n over the specified indexes. After this is applied the result will be in all indexes of YIndexes and also the last ScratchIndexes qubit.

GetCarry(Int32, Int32, Int32, Int32)
Return a series of simple operations that perform carry over the specified indexes.

GetCarryInverse(Int32, Int32, Int32, Int32)
Return a series of simple operations that perform carry over the specified indexes.

GetQuantumFourierTransform(array<Int32>[]()[])
Get the operations necessary to perform the quantum fourier transform over the indexes specified.

GetQuantumFourierTransformInverse(array<Int32>[]()[])
Get the operations necessary to perform the inverse quantum fourier transform over the indexes specified.

GetSum(Int32, Int32, Int32)
Return the series of operations that performs the Sum operation.

Hadamard
Perform the Hadamard operation on the qubit. This operation is also known as Hadamard-Walsh and the square root of not.

Identity
Perform the identity operation on the qubit. This does not change the state of the qubit.

Not
The Not operation. Also known as the Pauli X gate.

SGate
The S Gate operation

TGate
The T Gate operation

Toffoli
The Toffoli opeartion (double controlled not).

YGate
The Pauli Y Gate

ZGate
The Pauli Z gate

Remarks
This is partially due to a constraint in C#- static classes cannot implement interfaces or derive from classes other than object. This allows for operations to be applied as in Qubit.ApplyOperation(Operations.Hadamard); Instead of the less concise: Qubit.ApplyOperation(new OperationHadamard());
Inheritance Hierarchy
Object
Operations

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