Returns a slice (subset) of the register from StartIndex to the end.
| 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
- StartIndex (Int32)
- Starting index in the register to get the slice of.
The quantum register representing the slice.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if the start index is out of range. |