Skip to content

Conversation

@kris524
Copy link

@kris524 kris524 commented Feb 5, 2026

@github-actions github-actions bot added the Size: XS <10 lines changed label Feb 5, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a helpful note to the documentation regarding issues with NumPy 1.26 in large simulations, recommending an upgrade to version 2.x. However, this creates a conflict with the requirements.txt file, which still permits the installation of NumPy 1.26. My review includes a comment to address this inconsistency to prevent potential issues for users.

Comment on lines +314 to +320
* NumPy version matters for large simulations:
* Some users have reported being unable to simulate circuits with more than
~32 qubits when using NumPy 1.26.
* Updating NumPy to version 2.x resolved the issue in these cases.
* If you encounter unexpected failures, memory errors, or hard limits on
the number of qubits, ensure you are running a recent NumPy version
before further debugging.
Copy link
Contributor

Choose a reason for hiding this comment

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

high

This documentation change introduces an inconsistency with the project's dependencies. While it correctly warns about issues with NumPy 1.26 for large simulations, requirements.txt still specifies numpy>=1.26.0. This can lead to users installing a version known to have problems for certain use cases, creating a frustrating experience.

To maintain consistency within the project, please update requirements.txt to align with this new recommendation. For example, you could change the dependency to numpy>=2.0. If this is not feasible, the documentation should explain the trade-offs.

References
  1. The repository style guide emphasizes consistency across the codebase. The documented NumPy recommendation conflicts with the version specified in requirements.txt, creating an inconsistency. (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: XS <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant