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 Basic | Visual C++ |
public IQuantumRegister EliminateDuplicateReferences()
Public Function EliminateDuplicateReferences As IQuantumRegister
public: virtual IQuantumRegister^ EliminateDuplicateReferences() sealed
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.
Exceptions
Exception | Condition |
---|---|
NotImplementedException | This method is not yet
implemented. |