EliminateDuplicateReferences Method
Cove - A Practical Quantum Computer Programming Framework
EliminateDuplicateReferences Method
NamespacesCove.BaseIQuantumRegisterEliminateDuplicateReferences()()()
It is possible to create a register with references to the same qubit. This goes through and eliminates duplicate references, leaving the reference at the lowest index.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister EliminateDuplicateReferences()
Function EliminateDuplicateReferences As IQuantumRegister
IQuantumRegister^ EliminateDuplicateReferences()
Return Value
A reference to the register with the duplicates eliminated.
Examples
If the register contains qubits ABACDAC then a register containing only ABCD is returned.

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