FunctionWithLookupTable user defined type

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

The return type when making a lookup table. This contains the operation that makes the lookup table circuit, as well as all the parameters required to make the two FixedPoint registers that need to be used as inputs and outputs to the operator.


newtype FunctionWithLookupTable = (IntegerBitsIn : Int, FractionalBitsIn : Int, IntegerBitsOut : Int, FractionalBitsOut : Int, Apply : ((Microsoft.Quantum.Arithmetic.FixedPoint, Microsoft.Quantum.Arithmetic.FixedPoint) => Unit is Adj));

Named Items

IntegerBitsIn : Int

FractionalBitsIn : Int

IntegerBitsOut : Int

FractionalBitsOut : Int

Apply : (FixedPoint,FixedPoint) => Unit is Adj

Remarks

The reason we have this return type structure is so that the operator is similar to the other typical Q# arithmetic function implementations (a larger discussion can had as to whether that can be changed)