newsynth-0.3.0.2: Exact and approximate synthesis of quantum circuits

Safe HaskellSafe-Inferred

Quantum.Synthesis.ArcTan2

Contents

Description

This module provides a replacement for Haskell's atan2. The problem is that Haskell's standard implementation of atan2 depends on the RealFloat class, which limits its applicability. So we provide a new ArcTan2 class with an arctan2 function.

Unlike Haskell's atan2, the arctan2 function may not take signed zeros and signed infinities into account. But it works at fixed-precision types such as FixedPrec.

Synopsis

The arctan2 function

class ArcTan2 a whereSource

We provide a replacement for Haskell's atan2, because the latter depends on the RealFloat class, which limits its applicability.

Methods

arctan2 :: a -> a -> aSource