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++ |
public IQuantumRegister EliminateDuplicateReferences()
Public Function EliminateDuplicateReferences As IQuantumRegister
public: virtual IQuantumRegister^ EliminateDuplicateReferences() sealed
A reference to the register with the duplicates eliminated.
If the register contains qubits ABACDAC then a register containing
only ABCD is returned.
| Exception | Condition |
|---|---|
| NotImplementedException | This method is not yet
implemented. |