Skip to content

Commit

Permalink
v1.4.18
Browse files Browse the repository at this point in the history
  • Loading branch information
fobos123deimos committed Oct 17, 2024
1 parent 4d3f2f2 commit 820bcb8
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 2 deletions.
6 changes: 6 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

----------------------------------------------------------------

This software includes code licensed under the Apache License 2.0 from:
- Copyright 2022 Xanadu Quantum Technologies Inc.
- The code derived from this portion is subject to the terms of the Apache License 2.0.
10 changes: 10 additions & 0 deletions NOTICE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
NOTICE

This product includes software developed by Matheus Gomes Cordeiro under the BSD 3-Clause License.

This product also includes code that is licensed under the Apache License, Version 2.0, from:
- Xanadu Quantum Technologies Inc. (Copyright 2022)
- The code derived from this portion is subject to the terms of the Apache License 2.0.
- For more information, please refer to: http://www.apache.org/licenses/LICENSE-2.0

The original copyright notice for this third-party code is preserved in the relevant files.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = fast_wave
version = 1.4.17
version = 1.4.18
description = Package for the calculation of the time-independent wavefunction.
author = Matheus Gomes Cordeiro
author_email = matheusgomescord@gmail.com
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
long_description = fh.read()

name = "fast_wave"
version = "1.4.17"
version = "1.4.18"
description = "Package for the calculation of the time-independent wavefunction."
author_email = "matheusgomescord@gmail.com"
url = "https://github.com/pikachu123deimos/fast-wave"
Expand Down
50 changes: 50 additions & 0 deletions src/fast_wave/caching.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2022 Xanadu Quantum Technologies Inc.

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from functools import lru_cache, wraps
import numpy as np

Expand Down Expand Up @@ -25,6 +39,15 @@ def int_array_cache_Numba(fn):
A wrapped version of `fn` with caching enabled, including methods to access cache information:
- cache_info: Returns cache statistics.
- cache_clear: Clears the cache.
.. note::
This code is a modified version of the tensor_int_cache provided in Mr Mustard <https://github.com/XanaduAI/MrMustard/blob/develop/mrmustard/math/caching.py#L26>`_,
which is released under Apache License, Version 2.0 , with the following
copyright notice:
Copyright 2022 Xanadu Quantum Technologies Inc. All rights reserved.
"""

@lru_cache
Expand Down Expand Up @@ -64,6 +87,15 @@ def int_array_cache_Cython(fn):
A wrapped version of `fn` with caching enabled, including methods to access cache information:
- cache_info: Returns cache statistics.
- cache_clear: Clears the cache.
.. note::
This code is a modified version of the tensor_int_cache provided in Mr Mustard <https://github.com/XanaduAI/MrMustard/blob/develop/mrmustard/math/caching.py#L26>`_,
which is released under Apache License, Version 2.0 , with the following
copyright notice:
Copyright 2022 Xanadu Quantum Technologies Inc. All rights reserved.
"""

@lru_cache
Expand Down Expand Up @@ -105,6 +137,15 @@ def int_array_cache_Numba_complex(fn):
A wrapped version of `fn` with caching enabled, including methods to access cache information:
- cache_info: Returns cache statistics.
- cache_clear: Clears the cache.
.. note::
This code is a modified version of the tensor_int_cache provided in Mr Mustard <https://github.com/XanaduAI/MrMustard/blob/develop/mrmustard/math/caching.py#L26>`_,
which is released under Apache License, Version 2.0 , with the following
copyright notice:
Copyright 2022 Xanadu Quantum Technologies Inc. All rights reserved.
"""

@lru_cache
Expand Down Expand Up @@ -144,6 +185,15 @@ def int_array_cache_Cython_complex(fn):
A wrapped version of `fn` with caching enabled, including methods to access cache information:
- cache_info: Returns cache statistics.
- cache_clear: Clears the cache.
.. note::
This code is a modified version of the tensor_int_cache provided in Mr Mustard <https://github.com/XanaduAI/MrMustard/blob/develop/mrmustard/math/caching.py#L26>`_,
which is released under Apache License, Version 2.0 , with the following
copyright notice:
Copyright 2022 Xanadu Quantum Technologies Inc. All rights reserved.
"""

@lru_cache
Expand Down

0 comments on commit 820bcb8

Please sign in to comment.