AddLE operation

Fully qualified name: Microsoft.Quantum.Unstable.Arithmetic.AddLE

operation AddLE(xs : Qubit[], ys : Qubit[], zs : Qubit[]) : Unit is Adj

Summary

Sets a zero-initialized little-endian register zs to the sum of little-endian registers xs and ys

Description

Computes zs := xs + ys modulo 2ⁿ, where xs, ys, and zs are little-endian registers, Length(xs) = Length(ys) ≤ Length(zs) = n, assuming zs is 0-initialized. NOTE: Use operations like RippleCarryCGAddLE directly if the choice of implementation is important.