Insert a number of qubits at the beginning of the register. All other
qubits are shifted to higher indexes.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IQuantumRegister InsertQubitsAtBeginning( int NumberOfQubitsToAdd, bool InitializeTo )
Public Function InsertQubitsAtBeginning ( _ NumberOfQubitsToAdd As Integer, _ InitializeTo As Boolean _ ) As IQuantumRegister
public: virtual IQuantumRegister^ InsertQubitsAtBeginning( int NumberOfQubitsToAdd, bool InitializeTo ) sealed
Parameters
- NumberOfQubitsToAdd (Int32)
- The number of qubits to add to the register.
- InitializeTo (Boolean)
- Value to initialize the new qubits to.
Return Value
A reference to the expanded register.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if this insert causes the register to
exceed the maximum allowable size. |
NotImplementedException | This method is not yet
implemented. |