newsynth-0.3.0.1: Exact and approximate synthesis of quantum circuits

Safe HaskellNone

Quantum.Synthesis.LaTeX

Description

This module provides some functionality for pretty-printing certain types to LaTeX format.

Synopsis

Documentation

class ShowLaTeX a whereSource

A type class for things that can be printed to LaTeX format.

Minimal complete definition: showlatex or showlatex_p.

Methods

showlatex :: a -> StringSource

Print to LaTeX format.

showlatex_p :: Int -> a -> ShowSSource

Print to LaTeX format, with precedence. Analogous to showsPrec.

showlatex_denomexp_p :: (WholePart a b, ShowLaTeX b, DenomExp a) => Int -> a -> ShowSSource

Generic showlatex-like method that factors out a common denominator exponent.