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.
| C# | Visual Basic | Visual C++ |
IQuantumRegister EliminateDuplicateReferences()
Function EliminateDuplicateReferences As IQuantumRegister
IQuantumRegister^ EliminateDuplicateReferences()
A reference to the register with the duplicates eliminated.
If the register contains qubits ABACDAC then a register containing
only ABCD is returned.