Cove - A Practical Quantum Computer Programming Framework
InsertQubits Method (AtIndex, QubitsToInsert)
NamespacesCove.BaseIQuantumRegisterInsertQubits(Int32, array<IQubit>[]()[])
Insert multiple qubits to the register.
Declaration Syntax
C#Visual BasicVisual C++
IQuantumRegister InsertQubits(
	int AtIndex,
	IQubit[] QubitsToInsert
)
Function InsertQubits ( _
	AtIndex As Integer, _
	QubitsToInsert As IQubit() _
) As IQuantumRegister
IQuantumRegister^ InsertQubits(
	int AtIndex, 
	array<IQubit^>^ QubitsToInsert
)
Parameters
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.
Return Value
The reference to the combined register.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if the index specified is out of range.

Assembly: Cove.Base (Module: Cove.Base) Version: 1.0.0.0 (1.0.0.0)