Connects given registers into one root register and returns that root.
If registers was already connected, returns simply their root register.
It is strongly required before doing any operation on qubits in different registers.
This method is used at the begin of every operation from namespace Quantum.Operations, as these methods usually operate on more than one register.
Namespace: QuantumAssembly: Quantum (in Quantum.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Parameters
- refs
- Type: Quantum RegisterRef
Registers or references to single qubits. Registers could be passed here, because they are implicitly casted to RegisterRef type.
Return Value
Type: RegisterRoot register, that contains connected registers given in arguments.
See Also