Insert quantum registers into this one.
| C# | Visual Basic | Visual C++ |
IQuantumRegister InsertQubits( int AtIndex, IQuantumRegister[] RegistersToInsert )
Function InsertQubits ( _ AtIndex As Integer, _ RegistersToInsert As IQuantumRegister() _ ) As IQuantumRegister
IQuantumRegister^ InsertQubits( int AtIndex, array<IQuantumRegister^>^ RegistersToInsert )
- AtIndex (Int32)
- The register will be inserted starting at this index. The qubits at this index and after at the existing one will be shifted.
- RegistersToInsert (array< IQuantumRegister >[]()[])
- The registers to insert. They will be inserted in the same order they are in the array. Passing null is valid and has no effect on the register.
A reference to the combined register.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if the index specified
is out of range. |