Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ITensors] Don't export ITensorMPS #1432

Merged
merged 3 commits into from May 12, 2024
Merged

Conversation

mtfishman
Copy link
Member

Reexport.@reexport Module apparently reexports the module name Module itself: simonster/Reexport.jl#39 with no way of avoiding it, which we don't want in the case of ITensors.ITensorMPS. This fixes that with a custom solution using a for loop and @eval.

@mtfishman mtfishman added ITensors Issues or pull requests related to the `ITensors` package. ITensorMPS Issues related to the ITensorMPS submodule labels May 11, 2024
@mtfishman
Copy link
Member Author

Without this, if you type using ITensorMPS; using ITensors it results in the following warning:

julia> using ITensorMPS; using ITensors
WARNING: using ITensors.ITensorMPS in module Main conflicts with an existing identifier.

(jl_kbBmZ5) pkg> st ITensors ITensorMPS
Status `/private/var/folders/qz/q22pzwm144z9fq57mpf1hfp40000gq/T/jl_kbBmZ5/Project.toml`
  [0d1a4710] ITensorMPS v0.1.7
  [9136182c] ITensors v0.6.1

which is being hit in ITensor/ITensorParallel.jl#22.

@emstoudenmire
Copy link
Collaborator

Interesting. Glad there is a fix.

@mtfishman mtfishman merged commit 9f2b26e into main May 12, 2024
16 checks passed
@mtfishman mtfishman deleted the ITensorMPS_dont_export_ITensorMPS branch May 12, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ITensorMPS Issues related to the ITensorMPS submodule ITensors Issues or pull requests related to the `ITensors` package.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants