Skip to content

upgrade quimb and cotengra versions #1420

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Conversation

andrijapau
Copy link
Contributor

@andrijapau andrijapau commented Jun 25, 2025

Context:

This demo was getting random warnings,

/home/runner/work/qml/qml/venv/lib/python3.10/site-packages/cotengra/hyperoptimizers/hyper.py:57: UserWarning: Couldn't find `optuna`, `cmaes`, or `nevergrad` so will use completely random sampling in place of hyper-optimization.
  warnings.warn(
/home/runner/work/qml/qml/venv/lib/python3.10/site-packages/cotengra/hyperoptimizers/hyper.py:76: UserWarning: Couldn't find `optuna`, `cmaes`, or `nevergrad` so will use completely random sampling in place of hyper-optimization.
  warnings.warn(

which seemed to only occur with cotengra <= 0.7.4.

image

Description of the change:

By upgrading cotengra (and quimb ... why not?), the warnings disappear.

Benefits:

No more warnings,

image

@andrijapau andrijapau added dependencies Pull requests that update a dependency file ci:build-all-qml-demos Build all the Demos for this Pull Request labels Jun 25, 2025
@@ -96,7 +96,8 @@ zstd = "*"
dill = "*"
stim = "*"
bluequbit = "0.9.3b1"
quimb = "1.8.2"
quimb = "1.11.0"
cotengra = "0.7.5"
Copy link
Contributor Author

@andrijapau andrijapau Jun 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to manually force cotengra's version as without it quimb would install cotengra==0.7.4. 🤔

Copy link

Thank you for opening this pull request.

You can find the built site at this link.

Deployment Info:

  • Pull Request ID: 1420
  • Deployment SHA: 9418ed054bc5f36d1a7f35b7481dcda444b67fd7
    (The Deployment SHA refers to the latest commit hash the docs were built from)

Note: It may take several minutes for updates to this pull request to be reflected on the deployed site.

Copy link
Member

@PietropaoloFrisoni PietropaoloFrisoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:build-all-qml-demos Build all the Demos for this Pull Request dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants