Skip to content

Commit

Permalink
Replace all "import TAT" to "from tat import compat as TAT".
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhangxyz committed Nov 26, 2023
1 parent 949df94 commit e311d44
Show file tree
Hide file tree
Showing 61 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion tetragono/tetragono/common_tensor/Fermi.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
from .tensor_toolkit import Fedge, Tedge, rename_io

Tensor = TAT.Fermi.Z.Tensor
Expand Down
2 changes: 1 addition & 1 deletion tetragono/tetragono/common_tensor/FermiFermi_Hubbard.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
from .tensor_toolkit import Fedge, Tedge, rename_io

Tensor = TAT.FermiFermi.Z.Tensor
Expand Down
2 changes: 1 addition & 1 deletion tetragono/tetragono/common_tensor/FermiU1_Hubbard.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
from .tensor_toolkit import Fedge, Tedge, rename_io

Tensor = TAT.FermiU1.Z.Tensor
Expand Down
2 changes: 1 addition & 1 deletion tetragono/tetragono/common_tensor/FermiU1_tJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
from .tensor_toolkit import Fedge, Tedge, rename_io

Tensor = TAT.FermiU1.Z.Tensor
Expand Down
2 changes: 1 addition & 1 deletion tetragono/tetragono/common_tensor/No.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
from .tensor_toolkit import rename_io, kronecker_product

Tensor = TAT.No.Z.Tensor
Expand Down
2 changes: 1 addition & 1 deletion tetragono/tetragono/common_tensor/Parity.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
from .tensor_toolkit import Fedge, Tedge, rename_io

Tensor = TAT.Parity.Z.Tensor
Expand Down
2 changes: 1 addition & 1 deletion tetragono/tetragono/sampling_lattice/gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import signal
from datetime import datetime
import numpy as np
import TAT
from tat import compat as TAT
from ..sampling_lattice import SamplingLattice, Observer, SweepSampling, ErgodicSampling, DirectSampling
from ..utility import (show, showln, mpi_rank, mpi_size, SignalHandler, seed_differ, lattice_randomize, write_to_file,
get_imported_function, restrict_wrapper, bcast_number, write_configurations)
Expand Down
2 changes: 1 addition & 1 deletion tetragono/tetragono/sampling_lattice/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

import numpy as np
import TAT
from tat import compat as TAT
from ..auxiliaries import DoubleLayerAuxiliaries, ThreeLineAuxiliaries
from ..utility import mpi_rank, mpi_size
from ..tensor_element import tensor_element
Expand Down
2 changes: 1 addition & 1 deletion tetragono/tetragono/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import cmd
from io import StringIO
import numpy as np
import TAT
from tat import compat as TAT
from .utility import (mpi_rank, mpi_size, mpi_comm, write_to_file, read_from_file, show, showln, seed_differ,
get_imported_function, allgather_array, restrict_wrapper, write_configurations,
read_configurations)
Expand Down
2 changes: 1 addition & 1 deletion tetragono/tetragono/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import importlib.machinery
from mpi4py import MPI
import numpy as np
import TAT
from tat import compat as TAT

clear_line = "\u001b[2K"

Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/ansatzes/lx_cnn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

import torch
import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/ansatzes/lx_cnn/pbc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

import torch
import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/ansatzes/lx_cnn/pbc/deep.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

import torch
import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/J1J2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/J1J2/pbc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/bcs/square/d_wave.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/bcs/square/s_wave.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/boson_metal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/boson_metal/hopping_hamiltonian.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/boson_metal/initial_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/cluster_heisenberg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/cluster_heisenberg/pbc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/free_fermion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/free_fermion/complex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/gibbs_free_fermion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet
from tetragono.common_tensor.tensor_toolkit import half_reverse

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet
from tetragono.common_tensor.Parity import *
from tetragono.common_tensor.tensor_toolkit import rename_io, kronecker_product, half_reverse
Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/gibbs_heisenberg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/gibbs_hubbard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet
from tetragono.common_tensor.tensor_toolkit import half_reverse

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet
from tetragono.common_tensor.Parity import *
from tetragono.common_tensor.tensor_toolkit import rename_io, kronecker_product, half_reverse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet
from tetragono.common_tensor.Parity import *
from tetragono.common_tensor.tensor_toolkit import rename_io, kronecker_product, half_reverse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/heisenberg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/heisenberg/complex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/heisenberg/neel.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT


def initial_configuration(conf, zero_first=True):
Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/heisenberg/pbc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/honeycomb_hubbard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet
import os

Expand Down
2 changes: 1 addition & 1 deletion tetraku/tetraku/models/hubbard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

import TAT
from tat import compat as TAT
import tetragono as tet


Expand Down
Loading

0 comments on commit e311d44

Please sign in to comment.