The Quipper System

Safe HaskellNone

Quipper.Algorithms.QLS.Utils

Contents

Description

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

Synopsis

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

ncompose :: Int -> (a -> a) -> a -> a Source #

Compose a function with itself n times.

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

Specialized map for lists of pairs.