Append a single qubit to the register.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IQuantumRegister InsertQubitsAtEnd( IQubit QubitToAppend )
Public Function InsertQubitsAtEnd ( _ QubitToAppend As IQubit _ ) As IQuantumRegister
public: virtual IQuantumRegister^ InsertQubitsAtEnd( IQubit^ QubitToAppend ) sealed
Parameters
- QubitToAppend (IQubit)
- The qubit to append. Passing null is valid and has no effect on the register.
Return Value
A reference to the expanded register
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if this insert causes the register to
exceed the maximum allowable size. |
NotImplementedException | This method is not yet
implemented. |