Insert qubits into an arbitrary location in the register.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IQuantumRegister InsertQubits( int AtIndex, int NumberOfQubitsToAdd )
Public Function InsertQubits ( _ AtIndex As Integer, _ NumberOfQubitsToAdd As Integer _ ) As IQuantumRegister
public: virtual IQuantumRegister^ InsertQubits( int AtIndex, int NumberOfQubitsToAdd ) sealed
Parameters
- AtIndex (Int32)
- The qubits will be inserted starting at this index. The qubits at this index and after at the existing register will be shifted.
- NumberOfQubitsToAdd (Int32)
- Number of qubits to insert.
Return Value
A reference to the combined 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. |