From 99e6de7cbbb577fbe8ef1bdb31838a8a4d9318ee Mon Sep 17 00:00:00 2001 From: Sebastien Roy Date: Fri, 4 Oct 2024 15:41:50 -0400 Subject: [PATCH] copyright notice in code --- CMakeLists.txt | 15 +++++++++++++++ Makefile | 16 ++++++++++++++++ fast_pauli/__init__.py | 16 ++++++++++++++++ fast_pauli/cpp/examples/01_pauli_op.cpp | 16 ++++++++++++++++ .../cpp/examples/02_pauli_op_multistate.cpp | 16 ++++++++++++++++ fast_pauli/cpp/examples/03_summed_pauli_op.cpp | 16 ++++++++++++++++ fast_pauli/cpp/examples/CMakeLists.txt | 15 +++++++++++++++ fast_pauli/cpp/include/__factory.hpp | 16 ++++++++++++++++ fast_pauli/cpp/include/__nb_helpers.hpp | 16 ++++++++++++++++ fast_pauli/cpp/include/__pauli.hpp | 16 ++++++++++++++++ fast_pauli/cpp/include/__pauli_helpers.hpp | 16 ++++++++++++++++ fast_pauli/cpp/include/__pauli_op.hpp | 16 ++++++++++++++++ fast_pauli/cpp/include/__pauli_string.hpp | 16 ++++++++++++++++ fast_pauli/cpp/include/__summed_pauli_op.hpp | 16 ++++++++++++++++ fast_pauli/cpp/include/__type_traits.hpp | 16 ++++++++++++++++ fast_pauli/cpp/include/fast_pauli.hpp | 16 ++++++++++++++++ fast_pauli/cpp/src/CMakeLists.txt | 15 +++++++++++++++ fast_pauli/cpp/src/fast_pauli.cpp | 16 ++++++++++++++++ fast_pauli/cpp/tests/CMakeLists.txt | 15 +++++++++++++++ fast_pauli/cpp/tests/test_factory.cpp | 16 ++++++++++++++++ fast_pauli/cpp/tests/test_pauli.cpp | 16 ++++++++++++++++ fast_pauli/cpp/tests/test_pauli_helpers.cpp | 16 ++++++++++++++++ fast_pauli/cpp/tests/test_pauli_op.cpp | 16 ++++++++++++++++ fast_pauli/cpp/tests/test_pauli_string.cpp | 16 ++++++++++++++++ fast_pauli/cpp/tests/test_summed_pauli_op.cpp | 16 ++++++++++++++++ fast_pauli/pypauli/__init__.py | 16 ++++++++++++++++ fast_pauli/pypauli/helpers.py | 16 ++++++++++++++++ fast_pauli/pypauli/pauli_op.py | 16 ++++++++++++++++ fast_pauli/pypauli/pauli_string.py | 16 ++++++++++++++++ fast_pauli/qiskit_helpers.py | 16 ++++++++++++++++ pyproject.toml | 16 ++++++++++++++++ tests/__init__.py | 16 ++++++++++++++++ tests/benchmarks/__init__.py | 16 ++++++++++++++++ .../benchmarks/test_pauli_operator_benchmark.py | 16 ++++++++++++++++ tests/benchmarks/test_pauli_string_benchmark.py | 16 ++++++++++++++++ tests/benchmarks/test_qiskit_benchmark.py | 16 ++++++++++++++++ tests/conftest.py | 16 ++++++++++++++++ tests/fast_pauli/__init__.py | 16 ++++++++++++++++ tests/fast_pauli/test_pauli.py | 16 ++++++++++++++++ tests/fast_pauli/test_pauli_op.py | 16 ++++++++++++++++ tests/fast_pauli/test_pauli_string.py | 16 ++++++++++++++++ tests/fast_pauli/test_qiskit_interface.py | 16 ++++++++++++++++ tests/fast_pauli/test_summed_pauli_op.py | 16 ++++++++++++++++ tests/pytest.ini | 16 ++++++++++++++++ 44 files changed, 700 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4eb3491..df11046 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,18 @@ +# ############################################################################## +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may obtain a copy of +# this license in the LICENSE.txt file in the root directory of this source +# tree. +# +# Any modifications or derivative works of this code must retain this copyright +# notice, and modified files need to carry a notice indicating that they have +# been altered from the originals. + +# ############################################################################## + # # Boilerplate CMakeLists.txt for C++ projects # diff --git a/Makefile b/Makefile index 014b335..cd9af97 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + ############################################################################### # BUILD ############################################################################### diff --git a/fast_pauli/__init__.py b/fast_pauli/__init__.py index 2e7a15b..185f3f3 100644 --- a/fast_pauli/__init__.py +++ b/fast_pauli/__init__.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Fast Pauli and helpers.""" from ._fast_pauli import ( # noqa: F401 diff --git a/fast_pauli/cpp/examples/01_pauli_op.cpp b/fast_pauli/cpp/examples/01_pauli_op.cpp index 5b8d01b..e52a47e 100644 --- a/fast_pauli/cpp/examples/01_pauli_op.cpp +++ b/fast_pauli/cpp/examples/01_pauli_op.cpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #include #include diff --git a/fast_pauli/cpp/examples/02_pauli_op_multistate.cpp b/fast_pauli/cpp/examples/02_pauli_op_multistate.cpp index d3787cd..47d54c2 100644 --- a/fast_pauli/cpp/examples/02_pauli_op_multistate.cpp +++ b/fast_pauli/cpp/examples/02_pauli_op_multistate.cpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #include #include #include diff --git a/fast_pauli/cpp/examples/03_summed_pauli_op.cpp b/fast_pauli/cpp/examples/03_summed_pauli_op.cpp index aceb19e..57e6fc6 100644 --- a/fast_pauli/cpp/examples/03_summed_pauli_op.cpp +++ b/fast_pauli/cpp/examples/03_summed_pauli_op.cpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #include #include #include diff --git a/fast_pauli/cpp/examples/CMakeLists.txt b/fast_pauli/cpp/examples/CMakeLists.txt index 0fbf14b..e4bc8e5 100644 --- a/fast_pauli/cpp/examples/CMakeLists.txt +++ b/fast_pauli/cpp/examples/CMakeLists.txt @@ -1,3 +1,18 @@ +# ############################################################################## +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may obtain a copy of +# this license in the LICENSE.txt file in the root directory of this source +# tree. +# +# Any modifications or derivative works of this code must retain this copyright +# notice, and modified files need to carry a notice indicating that they have +# been altered from the originals. + +# ############################################################################## + # Grab all *.cpp files in the directory file(GLOB EXAMPLE CONFIGURE_DEPENDS "*.cpp") diff --git a/fast_pauli/cpp/include/__factory.hpp b/fast_pauli/cpp/include/__factory.hpp index 28db5b1..9f1f669 100644 --- a/fast_pauli/cpp/include/__factory.hpp +++ b/fast_pauli/cpp/include/__factory.hpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #ifndef __FAST_PAULI_FACTORY_HPP #define __FAST_PAULI_FACTORY_HPP diff --git a/fast_pauli/cpp/include/__nb_helpers.hpp b/fast_pauli/cpp/include/__nb_helpers.hpp index 119b70b..8e8384e 100644 --- a/fast_pauli/cpp/include/__nb_helpers.hpp +++ b/fast_pauli/cpp/include/__nb_helpers.hpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #ifndef __NB_HELPERS_HPP #define __NB_HELPERS_HPP diff --git a/fast_pauli/cpp/include/__pauli.hpp b/fast_pauli/cpp/include/__pauli.hpp index 65ce7c5..1958543 100644 --- a/fast_pauli/cpp/include/__pauli.hpp +++ b/fast_pauli/cpp/include/__pauli.hpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #ifndef __PAULI_HPP #define __PAULI_HPP diff --git a/fast_pauli/cpp/include/__pauli_helpers.hpp b/fast_pauli/cpp/include/__pauli_helpers.hpp index b069104..92dbbbf 100644 --- a/fast_pauli/cpp/include/__pauli_helpers.hpp +++ b/fast_pauli/cpp/include/__pauli_helpers.hpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #ifndef __PAULI_HELPERS_HPP #define __PAULI_HELPERS_HPP diff --git a/fast_pauli/cpp/include/__pauli_op.hpp b/fast_pauli/cpp/include/__pauli_op.hpp index 24f5b51..7cf61cf 100644 --- a/fast_pauli/cpp/include/__pauli_op.hpp +++ b/fast_pauli/cpp/include/__pauli_op.hpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #ifndef __PAULI_OP_HPP #define __PAULI_OP_HPP diff --git a/fast_pauli/cpp/include/__pauli_string.hpp b/fast_pauli/cpp/include/__pauli_string.hpp index 527ae9e..a88d5b4 100644 --- a/fast_pauli/cpp/include/__pauli_string.hpp +++ b/fast_pauli/cpp/include/__pauli_string.hpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #ifndef __PAULI_STRING_HPP #define __PAULI_STRING_HPP diff --git a/fast_pauli/cpp/include/__summed_pauli_op.hpp b/fast_pauli/cpp/include/__summed_pauli_op.hpp index f6ca5ba..34c40a0 100644 --- a/fast_pauli/cpp/include/__summed_pauli_op.hpp +++ b/fast_pauli/cpp/include/__summed_pauli_op.hpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #ifndef __SUMMED_PAULI_OP_HPP #define __SUMMED_PAULI_OP_HPP diff --git a/fast_pauli/cpp/include/__type_traits.hpp b/fast_pauli/cpp/include/__type_traits.hpp index 6f05cd7..c17098e 100644 --- a/fast_pauli/cpp/include/__type_traits.hpp +++ b/fast_pauli/cpp/include/__type_traits.hpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #ifndef __FP_TYPE_TRAITS_HPP #define __FP_TYPE_TRAITS_HPP diff --git a/fast_pauli/cpp/include/fast_pauli.hpp b/fast_pauli/cpp/include/fast_pauli.hpp index e79c580..824fae6 100644 --- a/fast_pauli/cpp/include/fast_pauli.hpp +++ b/fast_pauli/cpp/include/fast_pauli.hpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #ifndef FAST_PAULI_HPP #define FAST_PAULI_HPP diff --git a/fast_pauli/cpp/src/CMakeLists.txt b/fast_pauli/cpp/src/CMakeLists.txt index aa6b605..b5d6843 100644 --- a/fast_pauli/cpp/src/CMakeLists.txt +++ b/fast_pauli/cpp/src/CMakeLists.txt @@ -1,3 +1,18 @@ +# ############################################################################## +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may obtain a copy of +# this license in the LICENSE.txt file in the root directory of this source +# tree. +# +# Any modifications or derivative works of this code must retain this copyright +# notice, and modified files need to carry a notice indicating that they have +# been altered from the originals. + +# ############################################################################## + # See # https://nanobind.readthedocs.io/en/latest/api_cmake.html#command:nanobind_add_module # for more information on the nanobind_add_module command diff --git a/fast_pauli/cpp/src/fast_pauli.cpp b/fast_pauli/cpp/src/fast_pauli.cpp index 424e1c1..5c72f1d 100644 --- a/fast_pauli/cpp/src/fast_pauli.cpp +++ b/fast_pauli/cpp/src/fast_pauli.cpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #include "fast_pauli.hpp" #include diff --git a/fast_pauli/cpp/tests/CMakeLists.txt b/fast_pauli/cpp/tests/CMakeLists.txt index ced427d..db1e597 100644 --- a/fast_pauli/cpp/tests/CMakeLists.txt +++ b/fast_pauli/cpp/tests/CMakeLists.txt @@ -1,3 +1,18 @@ +# ############################################################################## +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may obtain a copy of +# this license in the LICENSE.txt file in the root directory of this source +# tree. +# +# Any modifications or derivative works of this code must retain this copyright +# notice, and modified files need to carry a notice indicating that they have +# been altered from the originals. + +# ############################################################################## + # Grab all *.cpp files in the directory file(GLOB TEST_SRC CONFIGURE_DEPENDS "*.cpp") diff --git a/fast_pauli/cpp/tests/test_factory.cpp b/fast_pauli/cpp/tests/test_factory.cpp index a9e0ccd..0ef14d0 100644 --- a/fast_pauli/cpp/tests/test_factory.cpp +++ b/fast_pauli/cpp/tests/test_factory.cpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include diff --git a/fast_pauli/cpp/tests/test_pauli.cpp b/fast_pauli/cpp/tests/test_pauli.cpp index 79955f2..a320aee 100644 --- a/fast_pauli/cpp/tests/test_pauli.cpp +++ b/fast_pauli/cpp/tests/test_pauli.cpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include #include diff --git a/fast_pauli/cpp/tests/test_pauli_helpers.cpp b/fast_pauli/cpp/tests/test_pauli_helpers.cpp index e2d7e11..29e6634 100644 --- a/fast_pauli/cpp/tests/test_pauli_helpers.cpp +++ b/fast_pauli/cpp/tests/test_pauli_helpers.cpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include diff --git a/fast_pauli/cpp/tests/test_pauli_op.cpp b/fast_pauli/cpp/tests/test_pauli_op.cpp index 8490947..c477e9c 100644 --- a/fast_pauli/cpp/tests/test_pauli_op.cpp +++ b/fast_pauli/cpp/tests/test_pauli_op.cpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include #include diff --git a/fast_pauli/cpp/tests/test_pauli_string.cpp b/fast_pauli/cpp/tests/test_pauli_string.cpp index a02dfdf..b083265 100644 --- a/fast_pauli/cpp/tests/test_pauli_string.cpp +++ b/fast_pauli/cpp/tests/test_pauli_string.cpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include diff --git a/fast_pauli/cpp/tests/test_summed_pauli_op.cpp b/fast_pauli/cpp/tests/test_summed_pauli_op.cpp index 6974478..38bb730 100644 --- a/fast_pauli/cpp/tests/test_summed_pauli_op.cpp +++ b/fast_pauli/cpp/tests/test_summed_pauli_op.cpp @@ -1,3 +1,19 @@ +/** + * This code is part of Fast Pauli. + * + * (C) Copyright Qognitive Inc 2024. + * + * This code is licensed under the BSD 2-Clause License. You may + * obtain a copy of this license in the LICENSE.txt file in the root directory + * of this source tree. + * + * Any modifications or derivative works of this code must retain this + * copyright notice, and modified files need to carry a notice indicating + * that they have been altered from the originals. + + + */ + #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include #include diff --git a/fast_pauli/pypauli/__init__.py b/fast_pauli/pypauli/__init__.py index c25d58c..f4452e4 100644 --- a/fast_pauli/pypauli/__init__.py +++ b/fast_pauli/pypauli/__init__.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """pypauli module provides implementations to benchmark and test c++ library.""" from fast_pauli.pypauli.pauli_op import PauliOp # noqa: F401 diff --git a/fast_pauli/pypauli/helpers.py b/fast_pauli/pypauli/helpers.py index 8857dcd..aca525e 100644 --- a/fast_pauli/pypauli/helpers.py +++ b/fast_pauli/pypauli/helpers.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Separate file with helper functions for Pauli matrices.""" import numpy as np diff --git a/fast_pauli/pypauli/pauli_op.py b/fast_pauli/pypauli/pauli_op.py index 64f085c..228cb93 100644 --- a/fast_pauli/pypauli/pauli_op.py +++ b/fast_pauli/pypauli/pauli_op.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """PauliOp implementation using numpy.""" from __future__ import annotations diff --git a/fast_pauli/pypauli/pauli_string.py b/fast_pauli/pypauli/pauli_string.py index 1a64db3..c2c2c9f 100644 --- a/fast_pauli/pypauli/pauli_string.py +++ b/fast_pauli/pypauli/pauli_string.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Efficient operations on Pauli string using numpy.""" from __future__ import annotations diff --git a/fast_pauli/qiskit_helpers.py b/fast_pauli/qiskit_helpers.py index 791911d..45b1402 100644 --- a/fast_pauli/qiskit_helpers.py +++ b/fast_pauli/qiskit_helpers.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Compatibility layer for Qiskit.""" from typing import Any diff --git a/pyproject.toml b/pyproject.toml index 5657057..2163147 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + ################################################################################ # Build System ################################################################################ diff --git a/tests/__init__.py b/tests/__init__.py index f7b1f64..57d0ba4 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1 +1,17 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Test fast_pauli c++ objects against python implementations.""" diff --git a/tests/benchmarks/__init__.py b/tests/benchmarks/__init__.py index e9bff40..b39b333 100644 --- a/tests/benchmarks/__init__.py +++ b/tests/benchmarks/__init__.py @@ -1 +1,17 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Benchmarking module to compare C++ implementation against numpy.""" diff --git a/tests/benchmarks/test_pauli_operator_benchmark.py b/tests/benchmarks/test_pauli_operator_benchmark.py index 4124e3a..a6238cb 100644 --- a/tests/benchmarks/test_pauli_operator_benchmark.py +++ b/tests/benchmarks/test_pauli_operator_benchmark.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Test pauli c++ objects against python implementations.""" import itertools as it diff --git a/tests/benchmarks/test_pauli_string_benchmark.py b/tests/benchmarks/test_pauli_string_benchmark.py index 4991426..1e26fbe 100644 --- a/tests/benchmarks/test_pauli_string_benchmark.py +++ b/tests/benchmarks/test_pauli_string_benchmark.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Test pauli c++ objects against python implementations.""" import itertools as it diff --git a/tests/benchmarks/test_qiskit_benchmark.py b/tests/benchmarks/test_qiskit_benchmark.py index 5f52576..ec04193 100644 --- a/tests/benchmarks/test_qiskit_benchmark.py +++ b/tests/benchmarks/test_qiskit_benchmark.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Benchmark fast_pauli operations with qiskit operations.""" import itertools as it diff --git a/tests/conftest.py b/tests/conftest.py index 115daed..4b0afd8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """pytest configuration file for fast_pauli tests.""" import itertools as it diff --git a/tests/fast_pauli/__init__.py b/tests/fast_pauli/__init__.py index 16530c3..e34cf75 100644 --- a/tests/fast_pauli/__init__.py +++ b/tests/fast_pauli/__init__.py @@ -1 +1,17 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Module to validate correctness and consistency of C++ and python implementations.""" diff --git a/tests/fast_pauli/test_pauli.py b/tests/fast_pauli/test_pauli.py index 31ed5b4..c00ae35 100644 --- a/tests/fast_pauli/test_pauli.py +++ b/tests/fast_pauli/test_pauli.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Test pauli objects from c++ against python implementations.""" import itertools as it diff --git a/tests/fast_pauli/test_pauli_op.py b/tests/fast_pauli/test_pauli_op.py index b89e915..a318b7d 100644 --- a/tests/fast_pauli/test_pauli_op.py +++ b/tests/fast_pauli/test_pauli_op.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Test pauli operator objects from c++ and python.""" from typing import Callable diff --git a/tests/fast_pauli/test_pauli_string.py b/tests/fast_pauli/test_pauli_string.py index cfcbdd5..c0a1803 100644 --- a/tests/fast_pauli/test_pauli_string.py +++ b/tests/fast_pauli/test_pauli_string.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Test pauli objects from c++ against python implementations.""" import itertools as it diff --git a/tests/fast_pauli/test_qiskit_interface.py b/tests/fast_pauli/test_qiskit_interface.py index dd75576..bbb7622 100644 --- a/tests/fast_pauli/test_qiskit_interface.py +++ b/tests/fast_pauli/test_qiskit_interface.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Test Qiskit interface.""" from typing import Callable diff --git a/tests/fast_pauli/test_summed_pauli_op.py b/tests/fast_pauli/test_summed_pauli_op.py index 6516898..e99312c 100644 --- a/tests/fast_pauli/test_summed_pauli_op.py +++ b/tests/fast_pauli/test_summed_pauli_op.py @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + """Test SummedPauliOp Python and C++ implementations.""" import numpy as np diff --git a/tests/pytest.ini b/tests/pytest.ini index bfc367e..08fed21 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -1,3 +1,19 @@ +############################################################################# +# This code is part of Fast Pauli. +# +# (C) Copyright Qognitive Inc 2024. +# +# This code is licensed under the BSD 2-Clause License. You may +# obtain a copy of this license in the LICENSE.txt file in the root directory +# of this source tree. +# +# Any modifications or derivative works of this code must retain this +# copyright notice, and modified files need to carry a notice indicating +# that they have been altered from the originals. + + +############################################################################# + [pytest] markers = consistency: mark a test that validates numerical corretness and consistency for implementations from python and c++.