Skip to content

Bump nalgebra version to 0.35#16437

Open
mtreinish wants to merge 1 commit into
Qiskit:mainfrom
mtreinish:bump-nalgebra-35
Open

Bump nalgebra version to 0.35#16437
mtreinish wants to merge 1 commit into
Qiskit:mainfrom
mtreinish:bump-nalgebra-35

Conversation

@mtreinish

Copy link
Copy Markdown
Member

With #16435 increasing our rust-numpy version to the latest release 0.29 this corresponded with a change in the allowed versions of the nalgebra used by that crate. Previously we had been blocked from using nalgebra 0.35 because rust-numpy could not handle that version of the crate and we wouldn't be able to pass nalgebra matrices to Python or vice versa. This commit bumps the version of nalgebra we use to 0.35.

The one downside to this change however is that nalgebra increases their MSRV to 1.89 from 1.87 that was used for 0.34. This means to leverage this crate Qiskit has to bump its MSRV too. Since we just did that for nalgebra 0.34 in this release cycle we have a choice to make, either bump Qiskit's MSRV in 2.5 to 1.89 instead 1.87 or defer this package upgrade for a future release. If we decide the latter we can just mark this on hold until we're ready to bump the MSRV again.

The rust code changes were autofixes from clippy to new rules that are enabled with the new MSRV.

AI/LLM disclosure

  • I didn't use LLM tooling, or only used it privately.
  • I used the following tool to help write this PR description:
  • I used the following tool to generate or modify code:

With Qiskit#16435 increasing our rust-numpy version to the latest release 0.29
this corresponded with a change in the allowed versions of the nalgebra
used by that crate. Previously we had been blocked from using nalgebra
0.35 because rust-numpy could not handle that version of the crate and
we wouldn't be able to pass nalgebra matrices to Python or vice versa.
This commit bumps the version of nalgebra we use to 0.35.

The one downside to this change however is that nalgebra increases their
MSRV to 1.89 from 1.87 that was used for 0.34. This means to leverage
this crate Qiskit has to bump its MSRV too. Since we just did that for
nalgebra 0.34 in this release cycle we have a choice to make, either
bump Qiskit's MSRV in 2.5 to 1.89 instead 1.87 or defer this package
upgrade for a future release. If we decide the latter we can just mark
this on hold until we're ready to bump the MSRV again.

The rust code changes were autofixes from clippy to new rules that are
enabled with the new MSRV.
@mtreinish mtreinish requested a review from a team as a code owner June 15, 2026 18:01
@mtreinish mtreinish requested a review from alexanderivrii June 15, 2026 18:01
@qiskit-bot

Copy link
Copy Markdown
Collaborator

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core
  • @levbishop
  • @mtreinish

@mtreinish mtreinish added the on hold Can not fix yet label Jun 15, 2026
@mtreinish mtreinish added this to the 2.6.0 milestone Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

on hold Can not fix yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants