ITensor / ITensorNetworks.jl

A package with general tools for working with higher-dimensional tensor networks based on ITensor.
MIT License
51 stars 12 forks source link

Remove flatten networks and refactor test #170

Closed JoeyT1994 closed 1 month ago

JoeyT1994 commented 1 month ago

PR to remove flatten_networks(...) as it is not being used for anything meaningful anymore in the library.

The test where it was being used in test_contraction_sequence_to_graph now directly constructs a flatened network by just calling ITensorNetwork(g; link_space =2) avoiding any use of siteinds.

This should address Issue #164

mtfishman commented 1 month ago

Great, thanks! Always nice to see code get deleted.