For completeness. The Register could be implicitly casted to the reference to its first qubit.
Like in arrays, where an address of an array is also the address of its first element.
Namespace: QuantumAssembly: Quantum (in Quantum.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- register
- Type: Quantum Register
Register to cast.
Return Value
Type: RegisterRefReference to first qubit in register.
See Also