MultiplySI operation

Warning

This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.Arithmetic

Package: Microsoft.Quantum.Numerics

Multiply signed integer xs by signed integer ys and store the result in result, which must be zero initially.

operation MultiplySI (xs : Microsoft.Quantum.Arithmetic.SignedLittleEndian, ys : Microsoft.Quantum.Arithmetic.SignedLittleEndian, result : Microsoft.Quantum.Arithmetic.SignedLittleEndian) : Unit is Adj + Ctl

Input

xs : SignedLittleEndian

𝑛₁-bit multiplicand

ys : SignedLittleEndian

𝑛₂-bit multiplier

result : SignedLittleEndian

(𝑛₁+𝑛₂)-bit result, must be in state |0⟩ initially.

Output : Unit