MLIR Passes v1.0
Loading...
Searching...
No Matches
Constants.hpp
1/* This code and any associated documentation is provided "as is"
2
3Copyright 2025 Munich Quantum Software Stack Project
4
5Licensed under the Apache License, Version 2.0 with LLVM Exceptions (the
6"License"); you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9https://github.com/Munich-Quantum-Software-Stack/passes/blob/develop/LICENSE
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14License for the specific language governing permissions and limitations under
15the License.
16
17SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
18-------------------------------------------------------------------------
19 author Martin Letras
20 date May 2025
21 version 1.0
22 brief
23 This header store a set of the most used constants.
24
25*******************************************************************************
26* This source code and the accompanying materials are made available under *
27* the terms of the Apache License 2.0 which accompanies this distribution. *
28******************************************************************************/
29
30#pragma once
31
32const double PI = 3.141592653589793238462643383279502884197169399375105820974L;
33const double PI_2 =
34 1.570796326794896619231321691639751442098584699687552910487L;
35const double PI_4 =
36 0.785398163397448309615660845819875721049292349843776455243L;
37const double TAU = 6.283185307179586476925286766559005768394338798750211641950L;
38const double E = 2.718281828459045235360287471352662497757247093699959574967L;