RegisterRef StructureA Sandcastle Documented Class Library
This structure represents a reference to a qubit in quantum register.

Namespace: Quantum
Assembly: Quantum (in Quantum.dll) Version: (

public struct RegisterRef

The RegisterRef type exposes the following members.


Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)

Public propertyOffset
The offset of referenced qubit in the Register. 0 means the Least Significant Bit.
Public propertyOffsetToRoot

The offset of referenced qubit, but in the root register. It is the same as Offset, when the Register is independent.

The idea of root register is described in GetRootRegister( RegisterRef ) , or in GetAmplitudes(Register).

Public propertyRegister
The register containing the referenced qubit.
See Also