Append a specific number of qubits to the register.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IQuantumRegister InsertQubitsAtEnd( int NumberOfQubitsToAdd )
Public Function InsertQubitsAtEnd ( _ NumberOfQubitsToAdd As Integer _ ) As IQuantumRegister
public: virtual IQuantumRegister^ InsertQubitsAtEnd( int NumberOfQubitsToAdd ) sealed
Parameters
- NumberOfQubitsToAdd (Int32)
- The number of qubits to add to 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. |