Returns a slice (subset) of the register from the beginning to EndIndex.
| C# | Visual Basic | Visual C++ |
public IQuantumRegister SliceTo( int EndIndex )
Public Function SliceTo ( _ EndIndex As Integer _ ) As IQuantumRegister
public: virtual IQuantumRegister^ SliceTo( int EndIndex ) sealed
- 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. |