-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into normalize!
- Loading branch information
Showing
22 changed files
with
281 additions
and
252 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "ITensorNetworks" | ||
uuid = "2919e153-833c-4bdc-8836-1ea460a35fc7" | ||
authors = ["Matthew Fishman <[email protected]>, Joseph Tindall <[email protected]> and contributors"] | ||
version = "0.11.15" | ||
version = "0.11.24" | ||
|
||
[deps] | ||
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" | ||
|
@@ -62,20 +62,20 @@ DocStringExtensions = "0.9" | |
EinExprs = "0.6.4" | ||
Graphs = "1.8" | ||
GraphsFlows = "0.1.1" | ||
ITensorMPS = "0.2.2" | ||
ITensors = "0.6.8" | ||
IsApprox = "0.1" | ||
ITensorMPS = "0.3" | ||
ITensors = "0.7" | ||
IsApprox = "0.1, 1, 2" | ||
IterTools = "1.4.0" | ||
KrylovKit = "0.6, 0.7" | ||
KrylovKit = "0.6, 0.7, 0.8" | ||
MacroTools = "0.5" | ||
NDTensors = "0.3" | ||
NamedGraphs = "0.6.0" | ||
OMEinsumContractionOrders = "0.8.3" | ||
OMEinsumContractionOrders = "0.8.3, 0.9" | ||
Observers = "0.2.4" | ||
PackageExtensionCompat = "1" | ||
SerializedElementArrays = "0.1" | ||
SimpleTraits = "0.9" | ||
SparseArrayKit = "0.3" | ||
SparseArrayKit = "0.3, 0.4" | ||
SplitApplyCombine = "1.2" | ||
StaticArrays = "1.5.12" | ||
StructWalk = "0.2" | ||
|
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,21 @@ | ||
using ITensorNetworks: IndsNetwork, siteinds, ttn | ||
using ITensorNetworks.ModelHamiltonians: ising | ||
using ITensors: Index, OpSum, terms, sites | ||
using NamedGraphs.NamedGraphGenerators: named_grid | ||
using NamedGraphs.GraphsExtensions: rem_vertex | ||
|
||
function filter_terms(H, verts) | ||
H_new = OpSum() | ||
for term in terms(H) | ||
if isempty(filter(v -> v ∈ verts, sites(term))) | ||
H_new += term | ||
end | ||
end | ||
return H_new | ||
end | ||
|
||
g = named_grid((8,1)) | ||
s = siteinds("S=1/2", g) | ||
H = ising(s) | ||
H_mod = filter_terms(H, [(4,1)]) | ||
ttno = ttn(H_mod, s) |
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
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
Oops, something went wrong.