The Quipper System

Algorithms.QLS.Utils

Description

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

Synopsis

# Hard-coded default sizes for quantum numbers

Default size of a register QSignedInt (not counting the sign).

Default size for the xxx part of the QDouble xxx.yyy.

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.