Returns a slice (subset) of the register from StartIndex to the end.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public IQuantumRegister SliceFrom( int StartIndex )
Public Function SliceFrom ( _ StartIndex As Integer _ ) As IQuantumRegister
public: virtual IQuantumRegister^ SliceFrom( int StartIndex ) sealed
Parameters
- StartIndex (Int32)
- Starting index in the register to get the slice of.
Return Value
The quantum register representing the slice.
Exceptions
Exception | Condition |
---|---|
IndexOutOfRangeException | Thrown if the start index is out of range. |