Cove - A Practical Quantum Computer Programming Framework
EliminateDuplicateReferences Method
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.
If the register contains qubits ABACDAC then a register containing only ABCD is returned.

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