Slicing may result in a subset of the register being exposed. This gets the
total length of the register, which includes qubits that may be hidden
through slicing.
Declaration Syntax
C# | Visual Basic | Visual C++ |
int GetTotalLength()
Function GetTotalLength As Integer
int GetTotalLength()
Return Value
The total number of qubits in the register, some of which
may be hidden.