AddExtension Sum Method A Sandcastle Documented Class Library
Computes the least significant bit of sum of two given bits. Used with Carry(QuantumComputer, RegisterRef, RegisterRef, RegisterRef, RegisterRef) to perform addition.

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

public static void Sum(
	this QuantumComputer comp,
	RegisterRef refA,
	RegisterRef refB,
	RegisterRef refTarget

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type QuantumComputer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also