QuantumComputer GetRootRegister Method A Sandcastle Documented Class Library
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: Quantum
Assembly: Quantum (in Quantum.dll) Version: (

public Register GetRootRegister(
	params RegisterRef[] 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: Register
Root register, that contains connected registers given in arguments.
See Also