Cove - A Practical Quantum Computer Programming Framework
InsertQubits Method (AtIndex, RegistersToInsert)
NamespacesCove.LocalSimulationQuantumRegisterInsertQubits(Int32, array<IQuantumRegister>[]()[])
Insert quantum registers into this one.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister InsertQubits(
	int AtIndex,
	IQuantumRegister[] RegistersToInsert
)
Public Function InsertQubits ( _
	AtIndex As Integer, _
	RegistersToInsert As IQuantumRegister() _
) As IQuantumRegister
public:
virtual IQuantumRegister^ InsertQubits(
	int AtIndex, 
	array<IQuantumRegister^>^ RegistersToInsert
) sealed
Parameters
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.
Return Value
A reference to the combined register.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if the index specified is out of range.
ArgumentOutOfRangeExceptionThrown if this insert causes the register to exceed the maximum allowable size. Also thrown if an element in the array passed is null.
NotImplementedExceptionThis method is not yet implemented.

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