-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reexport from ITensorTDVP and ITensors.ITensorMPS (#1)
- Loading branch information
Showing
13 changed files
with
451 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: CompatHelper | ||
on: | ||
schedule: | ||
- cron: '00 00 * * *' | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
jobs: | ||
CompatHelper: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using ITensorMPS | ||
using Documenter | ||
|
||
DocMeta.setdocmeta!(ITensorMPS, :DocTestSetup, :(using ITensorMPS); recursive=true) | ||
|
||
makedocs(; | ||
modules=[ITensorMPS], | ||
authors="ITensor developers", | ||
sitename="ITensorMPS.jl", | ||
format=Documenter.HTML(; | ||
canonical="https://ITensor.github.io/ITensorMPS.jl", edit_link="main", assets=String[] | ||
), | ||
pages=["Home" => "index.md"], | ||
) | ||
|
||
deploydocs(; repo="github.com/ITensor/ITensorMPS.jl", devbranch="main") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
```@meta | ||
CurrentModule = ITensorMPS | ||
``` | ||
|
||
# ITensorMPS | ||
|
||
Documentation for [ITensorMPS](https://github.com/ITensor/ITensorMPS.jl). | ||
|
||
```@index | ||
``` | ||
|
||
```@autodocs | ||
Modules = [ITensorMPS] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,169 @@ | ||
module ITensorMPS | ||
|
||
# Write your package code here. | ||
|
||
using Reexport: @reexport | ||
@reexport using ITensorTDVP: TimeDependentSum, dmrg_x, linsolve, tdvp, to_vec | ||
using ITensorTDVP: ITensorTDVP | ||
const alternating_update_dmrg = ITensorTDVP.dmrg | ||
@reexport using ITensors.ITensorMPS: | ||
@OpName_str, | ||
@SiteType_str, | ||
@StateName_str, | ||
@TagType_str, | ||
@ValName_str, | ||
@preserve_ortho, | ||
@visualize, | ||
@visualize!, | ||
@visualize_noeval, | ||
@visualize_noeval!, | ||
@visualize_sequence, | ||
@visualize_sequence_noeval, | ||
AbstractMPS, | ||
AbstractObserver, | ||
Apply, | ||
AutoMPO, | ||
DMRGMeasurement, | ||
DMRGObserver, | ||
Lattice, | ||
LatticeBond, | ||
MPO, | ||
MPS, | ||
NoObserver, | ||
Op, | ||
OpName, | ||
OpSum, | ||
Ops, | ||
Prod, | ||
ProjMPO, | ||
ProjMPOSum, | ||
ProjMPO_MPS, | ||
Scaled, | ||
SiteType, | ||
Spectrum, | ||
StateName, | ||
Sum, | ||
Sweeps, | ||
TagType, # deprecate | ||
Trotter, | ||
ValName, | ||
add, | ||
add!, | ||
apply, | ||
applyMPO, | ||
applympo, | ||
argsdict, | ||
checkdone!, # remove export | ||
coefficient, | ||
common_siteind, | ||
common_siteinds, | ||
convert_leaf_eltype, # remove export | ||
correlation_matrix, | ||
cutoff, | ||
cutoff!, # deprecate | ||
disk, | ||
dmrg, | ||
dot, # remove export | ||
eigs, # deprecate | ||
energies, # deprecate | ||
entropy, # deprecate | ||
errorMPOprod, # deprecate | ||
error_contract, | ||
error_mpoprod, # deprecate | ||
error_mul, # deprecate | ||
expect, | ||
findfirstsiteind, # deprecate | ||
findfirstsiteinds, # deprecate | ||
findsite, # deprecate | ||
findsites, # deprecate | ||
firstsiteind, # deprecate | ||
firstsiteinds, # deprecate | ||
get_cutoffs, # deprecate | ||
get_maxdims, # deprecate | ||
get_mindims, # deprecate | ||
get_noises, # deprecate | ||
has_fermion_string, # remove export | ||
hassameinds, | ||
inner, | ||
isortho, | ||
linkdim, | ||
linkdims, | ||
linkind, | ||
linkindex, | ||
linkinds, | ||
logdot, | ||
loginner, | ||
lognorm, | ||
lproj, | ||
maxdim, | ||
maxdim!, | ||
maxlinkdim, | ||
measure!, | ||
measurements, | ||
mindim, | ||
mindim!, | ||
movesite, | ||
movesites, | ||
mul, # deprecate | ||
multMPO, | ||
multmpo, | ||
noise, | ||
noise!, | ||
noiseterm, | ||
nsite, | ||
nsweep, | ||
op, | ||
ops, | ||
orthoCenter, | ||
ortho_lims, | ||
orthocenter, | ||
orthogonalize, | ||
orthogonalize!, | ||
outer, | ||
position!, | ||
product, | ||
primelinks!, | ||
productMPS, | ||
projector, | ||
promote_itensor_eltype, | ||
randomITensor, | ||
randomMPO, | ||
randomMPS, | ||
replace_siteinds, | ||
replace_siteinds!, | ||
replacebond, | ||
replacebond!, | ||
replaceprime, | ||
replacesites!, | ||
reset_ortho_lims!, | ||
rproj, | ||
sample, | ||
sample!, | ||
set_leftlim!, | ||
set_ortho_lims!, | ||
set_rightlim!, | ||
setcutoff!, | ||
setmaxdim!, | ||
setmindim!, | ||
setnoise!, | ||
simlinks!, | ||
siteind, | ||
siteindex, | ||
siteinds, | ||
splitblocks, | ||
square_lattice, | ||
state, | ||
sum, | ||
swapbondsites, | ||
sweepnext, | ||
tensors, | ||
toMPO, | ||
totalqn, | ||
tr, | ||
triangular_lattice, | ||
truncate, | ||
truncate!, | ||
truncerror, | ||
truncerrors, | ||
unique_siteind, | ||
unique_siteinds, | ||
val, | ||
⋅ | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[deps] | ||
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2" | ||
ITensorTDVP = "25707e16-a4db-4a07-99d9-4d67b7af0342" | ||
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
using ITensorMPS | ||
using Test | ||
|
||
@eval module $(gensym()) | ||
using ITensorMPS: ITensorMPS | ||
using ITensorTDVP: ITensorTDVP | ||
using ITensors: ITensors | ||
include("utils/TestITensorMPSExportedNames.jl") | ||
using Test: @test, @testset | ||
@testset "ITensorMPS.jl" begin | ||
# Write your tests here. | ||
@testset "exports" begin | ||
@test issetequal( | ||
names(ITensorMPS), | ||
[ | ||
[:ITensorMPS] | ||
# ITensorTDVP reexports | ||
[:TimeDependentSum, :dmrg_x, :linsolve, :tdvp, :to_vec] | ||
# ITensors and ITensors.ITensorMPS reexports | ||
TestITensorMPSExportedNames.ITENSORMPS_EXPORTED_NAMES | ||
], | ||
) | ||
end | ||
@testset "aliases" begin | ||
@test ITensorMPS.alternating_update_dmrg === ITensorTDVP.dmrg | ||
end | ||
end | ||
end |
Oops, something went wrong.