Returns a slice (subset) of the register from the beginning to EndIndex.
| C# | Visual Basic | Visual C++ |
IQuantumRegister SliceTo( int EndIndex )
Function SliceTo ( _ EndIndex As Integer _ ) As IQuantumRegister
IQuantumRegister^ SliceTo( int EndIndex )
- EndIndex (Int32)
- The ending index of the slice.
The quantum register representing the slice.
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | Thrown if the end index is out of range. |