Skip to content

Commit

Permalink
Add license
Browse files Browse the repository at this point in the history
  • Loading branch information
shufay committed Apr 8, 2024
1 parent c478bcd commit 366c499
Show file tree
Hide file tree
Showing 44 changed files with 771 additions and 2 deletions.
18 changes: 18 additions & 0 deletions ipie/addons/thermal/analysis/extraction.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

import json

import h5py
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/analysis/thermal_analysis.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

#!/usr/bin/env python

import sys
Expand Down
17 changes: 17 additions & 0 deletions ipie/addons/thermal/estimators/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#
3 changes: 2 additions & 1 deletion ipie/addons/thermal/estimators/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Author: Fionn Malone <[email protected]>
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

from typing import Union
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/estimators/generic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

import plum
import numpy
from ipie.hamiltonians.generic import GenericRealChol, GenericComplexChol
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/estimators/greens_function.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

import numpy
import scipy.linalg

Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/estimators/handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

"""Routines and classes for estimation of observables."""

import os
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/estimators/local_energy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

from ipie.addons.thermal.estimators.generic import local_energy_generic_cholesky
from ipie.addons.thermal.estimators.thermal import one_rdm_from_G

Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/estimators/particle_number.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

from ipie.utils.backend import arraylib as xp
from ipie.estimators.estimator_base import EstimatorBase
from ipie.addons.thermal.estimators.thermal import one_rdm_from_G
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/estimators/tests/test_estimators.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

import pytest
import tempfile
import numpy
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/estimators/tests/test_generic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

import numpy
import pytest
from typing import Tuple, Union
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/estimators/tests/test_generic_complex.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

import numpy
import pytest
from typing import Tuple, Union
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/estimators/thermal.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

import numpy
import scipy.linalg

Expand Down
17 changes: 17 additions & 0 deletions ipie/addons/thermal/propagation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#
18 changes: 18 additions & 0 deletions ipie/addons/thermal/propagation/force_bias.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

import plum
import numpy

Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/propagation/operations.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

from ipie.utils.backend import arraylib as xp

def apply_exponential(VHS, exp_nmax):
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/propagation/phaseless_base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

import time
import plum
import math
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/propagation/phaseless_generic.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

import plum

from ipie.hamiltonians.generic import GenericRealChol, GenericComplexChol
Expand Down
18 changes: 18 additions & 0 deletions ipie/addons/thermal/propagation/propagator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# Copyright 2022 The ipie Developers. All Rights Reserved.
#
# 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.
#
# Authors: Fionn Malone <[email protected]>
# Joonho Lee
#

from ipie.hamiltonians.generic import GenericRealChol, GenericComplexChol
from ipie.addons.thermal.propagation.phaseless_generic import PhaselessGeneric

Expand Down
Loading

0 comments on commit 366c499

Please sign in to comment.