JoeyT1994 / ITensorNumericalAnalysis.jl

MIT License
3 stars 0 forks source link

Multidimensional Improvements #17

Closed JoeyT1994 closed 3 months ago

JoeyT1994 commented 3 months ago

This PR gets multidimensional polynomials working (i.e. you can now construct polynomials for bitmaps that have an arbitrary number of dims).

It also provides default options for specifying multi-dimensional bitmaps e.g. BitMap(g::AbstractGraph; map_dimension) will choose a default bit ordering for you which reflects the dimensionality of the map you want.

Tests are refactored and simplified with these changes. An example for constructing a multi-dimensional function is added and the examples have been cleaned up.

ryanlevy commented 3 months ago

Looks like CI is failing because of the UnicodePlots call, maybe we can add a flag to run examples with displays off? Not sure how ITensors handles this, besides forking the example into a custom test

JoeyT1994 commented 3 months ago

I think we could just have runtests.jl ignore the test_examples.jl file and not run it? I'm not a big fan of running examples through the runtests.jl anyway as it often uses up a lot of CI time