Insert multiple qubits to the register.
| C# | Visual Basic | Visual C++ |
public IQuantumRegister InsertQubits( int AtIndex, IQubit[] QubitsToInsert )
Public Function InsertQubits ( _ AtIndex As Integer, _ QubitsToInsert As IQubit() _ ) As IQuantumRegister
public: virtual IQuantumRegister^ InsertQubits( int AtIndex, array<IQubit^>^ QubitsToInsert ) sealed
- AtIndex (Int32)
- The qubit will be inserted starting at this index. The qubits at this index and after at the existing one will be shifted.
- QubitsToInsert (array< IQubit >[]()[])
- The qubits to insert into the register. Passing null is valid and has no effect on the register.
The reference to the combined register.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if the index specified
is out of range. |
| ArgumentOutOfRangeException | Thrown if this insert causes the register to
exceed the maximum allowable size. Also thrown if an element in the array passed is null. |
| NotImplementedException | This method is not yet
implemented. |