Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.16 KB

microsoft.quantum.arithmetic.squarefxp.md

File metadata and controls

46 lines (28 loc) · 1.16 KB
uid title ms.date ms.topic qsharp.kind qsharp.namespace qsharp.name qsharp.summary
Microsoft.Quantum.Arithmetic.SquareFxP
SquareFxP operation
7/28/2023 12:00:00 AM
managed-reference
operation
Microsoft.Quantum.Arithmetic
SquareFxP
Squares a fixed-point number.

SquareFxP 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

Squares a fixed-point number.

operation SquareFxP (fp : Microsoft.Quantum.Arithmetic.FixedPoint, result : Microsoft.Quantum.Arithmetic.FixedPoint) : Unit is Adj + Ctl

Input

fp : FixedPoint

Fixed-point number.

result : FixedPoint

Result fixed-point number, must be in state $\ket{0}$ initially.

Output : Unit