Skip to content

Commit

Permalink
Updating default.tensor to the latest quimb version (#6630)
Browse files Browse the repository at this point in the history
**Context:** With the new version (`1.9.0`) of `quimb`, released on
2024-11-19, `DefaultTensor` no longer works.

This seems to depend on the fact that the `local_expectation` method for
MPS quantum circuits no longer works if `dtype` is specified.

See [this discussion](jcmgray/quimb#268) in
`quimb` for details.

Now that `quimb 1.10` [has been
released](https://quimb.readthedocs.io/en/latest/changelog.html#v1-10-0-2024-12-18),
PennyLane is compatible with `quimb` again.

**Description of the Change:** We just unpin the `quimb` version in the
CI

**Benefits:** `PennyLane` is compatible again with the latest `quimb`,
and we'll know if something is not working.

**Possible Drawbacks:** None.

**Related GitHub Issues:** None.

**Related ShortCut Stories:** [sc-78734]
  • Loading branch information
PietropaoloFrisoni authored Dec 19, 2024
1 parent 3ff71de commit e1566e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/interface-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ jobs:
pytest_markers: external
pytest_additional_args: -W ${{ inputs.python_warning_level }} ${{ inputs.python_warning_level != 'default' && '--continue-on-collection-errors' || '' }}
additional_pip_packages: |
pyzx matplotlib stim quimb==1.8.4 mitiq ply optax scipy-openblas32>=0.3.26
pyzx matplotlib stim quimb mitiq ply optax scipy-openblas32>=0.3.26
git+https://github.com/PennyLaneAI/pennylane-qiskit.git@master
${{ needs.default-dependency-versions.outputs.jax-version }}
${{ needs.default-dependency-versions.outputs.tensorflow-version }}
Expand Down
3 changes: 3 additions & 0 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ such as `shots`, `rng` and `prng_key`.

<h4>Other Improvements</h4>

* PennyLane is compatible with `quimb 1.10.0`.
[(#6630)](https://github.com/PennyLaneAI/pennylane/pull/6630)

* Add developer focused `run` function to `qml.workflow` module.
[(#6657)](https://github.com/PennyLaneAI/pennylane/pull/6657)

Expand Down

0 comments on commit e1566e5

Please sign in to comment.