Skip to content

Commit

Permalink
rename to TeneT
Browse files Browse the repository at this point in the history
  • Loading branch information
XingyuZhang2018 committed Sep 1, 2022
1 parent 15e5b24 commit 0c6c511
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "Vumps"
name = "TeneT"
uuid = "260a78e0-cbf2-49ba-8157-48058c700f32"
authors = ["XingyuZhang2018 <[email protected]> and contributors"]
version = "0.1.0"
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Vumps.jl
# TeneT.jl

[![CI](https://github.com/XingyuZhang2018/Vumps.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/XingyuZhang2018/Vumps.jl/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/XingyuZhang2018/Vumps.jl/branch/master/graph/badge.svg?token=i34pxx5k2N)](https://codecov.io/gh/XingyuZhang2018/Vumps.jl)
[![CI](https://github.com/XingyuZhang2018/TeneT.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/XingyuZhang2018/TeneT.jl/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/XingyuZhang2018/TeneT.jl/branch/master/graph/badge.svg?token=i34pxx5k2N)](https://codecov.io/gh/XingyuZhang2018/TeneT.jl)

This is a Julia package for the Variational Uniform Matrix product states(VUMPS) to contract infinite two-dimension square lattice tensor network.

In this package we implemented the Vumps algorithms including the following:
In this package we implemented the VUMPS algorithms including the following:
- Complex number forward and backward propagation
- NixNj Big Unit Cell
- U1-symmmetry and Z2-symmmetry
Expand All @@ -15,19 +15,19 @@ This package a updated version of the original [ADVUMPS.jl](https://github.com/X

## install
```shell
> git clone https://github.com/XingyuZhang2018/Vumps.jl
> git clone https://github.com/XingyuZhang2018/TeneT.jl
```
move to the file and run `julia REPL`, press `]` into `Pkg REPL`
```julia
(@v1.7) pkg> activate .
Activating environment at `..\Vumps\Project.toml`
Activating environment at `..\TeneT\Project.toml`

(Vumps) pkg> instantiate
(TeneT) pkg> instantiate
```
To get back to the Julia REPL, press `backspace` or `ctrl+C`. Then Precompile `Vumps`
To get back to the Julia REPL, press `backspace` or `ctrl+C`. Then Precompile `TeneT`
```julia
julia> using Vumps
[ Info: Precompiling Vumps [260a78e0-cbf2-49ba-8157-48058c700f32]
julia> using TeneT
[ Info: Precompiling TeneT [260a78e0-cbf2-49ba-8157-48058c700f32]
```
## Examples
### 2D Classical Ising Model
Expand All @@ -39,5 +39,5 @@ You can modify Ni and Nj to change the Unit cell size and atype `Array` or `CuAr
### More Project including this package
- [AD-Kitaev](https://github.com/XingyuZhang2018/AD-Kitaev) - Optimize iPEPS of Kitaev-like model with 1x2 unit cell Vumps.
- [ADFPEPS.jl](https://github.com/XingyuZhang2018/ADFPEPS.jl) - Optimize fermionic iPEPS of Hubbard model with 2x2 unit cell Vumps.
- [AD-Kitaev](https://github.com/XingyuZhang2018/AD-Kitaev) - Optimize iPEPS of Kitaev-like model with 1x2 unit cell VUMPS.
- [ADFPEPS.jl](https://github.com/XingyuZhang2018/ADFPEPS.jl) - Optimize fermionic iPEPS of Hubbard model with 2x2 unit cell VUMPS.
2 changes: 1 addition & 1 deletion example/exampleobs.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using OMEinsum
using Vumps: ALCtoAC
using TeneT: ALCtoAC
"""
observable(env, model::MT, type)
Expand Down
4 changes: 2 additions & 2 deletions example/exampletensors.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Vumps
using Vumps: _arraytype
using TeneT
using TeneT: _arraytype
using OMEinsum
using Zygote

Expand Down
2 changes: 1 addition & 1 deletion src/Vumps.jl → src/TeneT.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Vumps
module TeneT

include("patch.jl")
include("environment.jl")
Expand Down
4 changes: 2 additions & 2 deletions test/autodiff.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Vumps
using Vumps:qrpos,lqpos,leftorth,leftenv,rightorth,rightenv,ACenv,Cenv,LRtoC,ALCtoAC,ACCtoALAR,env_norm
using TeneT
using TeneT:qrpos,lqpos,leftorth,leftenv,rightorth,rightenv,ACenv,Cenv,LRtoC,ALCtoAC,ACCtoALAR,env_norm
using ChainRulesCore
using CUDA
using LinearAlgebra
Expand Down
4 changes: 2 additions & 2 deletions test/environment.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Vumps
using Vumps:qrpos,lqpos,leftorth,rightorth,leftenv,FLmap,rightenv,FRmap,ACenv,ACmap,Cenv,Cmap,LRtoC,ALCtoAC,ACCtoALAR,error, env_norm
using TeneT
using TeneT:qrpos,lqpos,leftorth,rightorth,leftenv,FLmap,rightenv,FRmap,ACenv,ACmap,Cenv,Cmap,LRtoC,ALCtoAC,ACCtoALAR,error, env_norm
using CUDA
using LinearAlgebra
using Random
Expand Down
4 changes: 2 additions & 2 deletions test/fixedpoint.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Vumps
using Vumps: fixedpoint
using TeneT
using TeneT: fixedpoint
using Test

struct StopFunction{T,S}
Expand Down
2 changes: 1 addition & 1 deletion test/patch.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Vumps
using TeneT
using KrylovKit
using CUDA
using Test
Expand Down
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Vumps
using TeneT
using Test

@testset "Vumps.jl" begin
@testset "TeneT.jl" begin
@testset "patch" begin
println("patch tests running...")
include("patch.jl")
Expand Down
4 changes: 2 additions & 2 deletions test/vumpsruntime.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using CUDA
using Random
using Test
using Vumps
using Vumps: vumps, vumps_env, env_norm
using TeneT
using TeneT: vumps, vumps_env, env_norm

@testset "$(Ni)x$(Nj) VUMPSRuntime with $atype{$dtype}" for Ni = [1,2,3], Nj = [1,2,3], atype = [Array], dtype = [Float64, ComplexF64]
Random.seed!(100)
Expand Down

0 comments on commit 0c6c511

Please sign in to comment.