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

[BUG] Warnings from cotengra are raised at import of pennylane #6893

Open
1 task done
lillian542 opened this issue Jan 28, 2025 · 0 comments
Open
1 task done

[BUG] Warnings from cotengra are raised at import of pennylane #6893

lillian542 opened this issue Jan 28, 2025 · 0 comments
Labels
bug 🐛 Something isn't working

Comments

@lillian542
Copy link
Contributor

Expected behavior

There is a known minor issue with the cotengra package - it raises some warnings on import for many (all?) environment configurations. It's a requirement for using default.tensor. However, once installed, the warnings are raised when importing PennyLane.

Actual behavior

We should adjust the import locations or catch and re-raise these warnings so that they are raised when initializing default.tensor, instead of any time someone with cotengra in their environment runs import pennylane as qml.

Additional information

100% of the time if cotengra is installed in the environment

Source code

Tracebacks

System information

pl-dev

Existing GitHub issues

  • I have searched existing GitHub issues to make sure the issue does not already exist.
@lillian542 lillian542 added the bug 🐛 Something isn't working label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant