Safe Haskell | None |
---|

This module defines some auxiliary machinery required for the QLS algorithm.

- fixed_int_register_length :: Int
- before_radix_length :: Int
- after_radix_length :: Int
- ncompose :: Int -> (a -> a) -> a -> a
- listpair_fmap :: (a -> b) -> [(a, a)] -> [(b, b)]

# Hard-coded default sizes for quantum numbers

fixed_int_register_length :: Int Source #

Default size of a register `QSignedInt`

(not counting the sign).

before_radix_length :: Int Source #

Default size for the *xxx* part of the `QDouble`

*xxx.yyy*.

after_radix_length :: Int Source #

Default size for the *yyy* part of the `QDouble`

*xxx.yyy*.

# Miscellaneous utilities

listpair_fmap :: (a -> b) -> [(a, a)] -> [(b, b)] Source #

Specialized `map`

for lists of pairs.