Cove - A Practical Quantum Computer Programming Framework
InsertQubits Method (AtIndex, QubitToInsert)
NamespacesCove.LocalSimulationQuantumRegisterInsertQubits(Int32, IQubit)
Insert a single qubit into the register.
Declaration Syntax
C#Visual BasicVisual C++
public IQuantumRegister InsertQubits(
	int AtIndex,
	IQubit QubitToInsert
Public Function InsertQubits ( _
	AtIndex As Integer, _
	QubitToInsert As IQubit _
) As IQuantumRegister
virtual IQuantumRegister^ InsertQubits(
	int AtIndex, 
	IQubit^ QubitToInsert
) 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.
QubitToInsert (IQubit)
The qubit to insert. Passing null is valid and has no effect on the register.
Return Value
The reference to the combined register.
IndexOutOfRangeExceptionThrown if the index specified is out of range.
ArgumentOutOfRangeExceptionThrown if this insert causes the register to exceed the maximum allowable size.
NotImplementedExceptionThis method is not yet implemented.

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