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

TensorNetwork.replace! raises UndefVarError: P not defined in Tenet v0.7.3 #190

Closed
marcosdiezgarcia opened this issue Aug 19, 2024 · 3 comments
Labels
backport Fix must be back ported bug Something isn't working
Milestone

Comments

@marcosdiezgarcia
Copy link

marcosdiezgarcia commented Aug 19, 2024

I tried to run the following code from the Julia REPL, using Tenet version 0.7.3, but raises an error UndefVarError: 'P' not defined:

using Tenet
ketzeros = zeros(Product, 2)
adjoint(Quantum(ketzeros))

Stacktrace:
image

However, the above error does not occur in Tenet version 0.7.1.

I am running Julia version 1.9.3.

@mofeing mofeing added the bug Something isn't working label Aug 19, 2024
@mofeing mofeing added this to the 0.8 milestone Aug 19, 2024
@mofeing
Copy link
Member

mofeing commented Aug 19, 2024

Thanks for the report @marcosdiezgarcia! We're now on vacations so we won't be able to properly fix and publish a new version until early September.

Meanwhile, you can get the bug fixed by defining the following in your code:

Base.replace!(tn::TensorNetwork) = tn

@mofeing mofeing modified the milestone: 0.8 Aug 19, 2024
@mofeing mofeing added the backport Fix must be back ported label Sep 4, 2024
@mofeing mofeing modified the milestones: 0.8, 0.7.x Sep 4, 2024
@mofeing mofeing closed this as completed in 85b56c8 Sep 4, 2024
mofeing added a commit that referenced this issue Sep 4, 2024
@mofeing
Copy link
Member

mofeing commented Sep 4, 2024

@marcosdiezgarcia The problem should be solved in v0.7.4

@marcosdiezgarcia
Copy link
Author

marcosdiezgarcia commented Sep 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Fix must be back ported bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants