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 running the QHGO framework.py #25

Open
DarkStarStrix opened this issue Sep 5, 2024 · 0 comments
Open

Bug running the QHGO framework.py #25

DarkStarStrix opened this issue Sep 5, 2024 · 0 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file help wanted Extra attention is needed

Comments

@DarkStarStrix
Copy link
Owner

DarkStarStrix commented Sep 5, 2024

Title: Severe Dependency Conflicts and File Corruption with Qiskit Air and RustX on Latest Versions

Description:

I've been facing persistent dependency conflicts while trying to use the Qiskit Aer backend, specifically when updating to Qiskit Aer version 0.15. This issue is critical as it's preventing any progress on my project, and the problem seems to stem from the complex interactions between Qiskit, Qiskit Aer, RustX, and possibly other dependencies.

Steps to Reproduce:

  1. Set up a virtual environment with pip (e.g., Python 3.8).
  2. Install Qiskit, pinning it to version 1.0.0 (or any earlier stable version).
  3. Attempt to update Qiskit Air to version 0.15 to work with the latest backend simulators.
  4. Observe conflicting dependency issues with RustX (and potentially other Rust-related packages).
  5. Any attempt to revert to earlier versions of Qiskit Air (or Rust) results in file corruption, including corrupted binaries, with the environment becoming unusable.

Observed Behavior:

  • Dependency conflict: When updating to Qiskit Aer 0.15, it reports the need for previous versions of Qiskit Aer and Rust, leading to a Catch-22 where neither version combination works.
  • Corruption: Files become corrupted after multiple reinstalls of Qiskit Aer and Rust. Specifically, this happens even after creating a clean virtual environment and reinstalling dependencies.
  • Breakage: Qiskit forces the use of the latest version for compatibility with backends, but even pinning to earlier versions leads to catastrophic failures when trying to run quantum code.

Expected Behavior:

  • Smooth installation and compatibility with the latest versions of Qiskit and Qiskit Aer.
  • No file corruption after updating or reverting versions.
  • Reliable dependency management, especially for critical quantum computing libraries.

System Information:

  • Python version: 3.8 (also tried with Python 3.9)
  • Qiskit version: 1.0.0 (tried updating to 0.15, results in conflict)
  • Rust version: Latest stable version as of [DATE]
  • Operating System: [Linux/Mac/Windows]

Troubleshooting Steps Already Taken:

  • Completely wiped and reinstalled virtual environments multiple times.
  • Manually reinstalled Rust and related dependencies.
  • Cleared all cache files (pip cache purge, cargo clean, etc.).
  • Attempted to install Qiskit Air without dependencies and managed them manually (pip install --no-deps qiskit-air).
  • Checked GitHub issues, but found no existing documentation or solutions for this specific problem.

Additional Context:
This issue has severely impacted my ability to work on my project, as 60% of my time is now spent fighting dependency management rather than progressing with research. Given that the same environment setup worked fine before the Qiskit Aer 0.15 update, this appears to be a new or undocumented issue with dependency management between Qiskit and RustX.

The same pattern of failures was observed when I previously worked with other packages like Pandas, where dependency breakages led to file corruption and multiple weeks of downtime before it was eventually resolved. This feels like a similar issue but within the quantum computing ecosystem.

Possible Related Issues:
None found, but this might be part of a broader issue with Qiskit’s dependency on RustX, or possibly related to how dependencies are handled across Qiskit components (Terra, Aer, etc.).

Next Steps / Help Needed:

  • Is there a known workaround for handling these dependency conflicts between Qiskit Air and RustX?
  • Are there ongoing efforts to stabilize these dependencies, or should I consider moving to a different backend platform in the meantime?

Thank you for your help. I look forward to any guidance on this issue.

@DarkStarStrix DarkStarStrix pinned this issue Sep 5, 2024
@DarkStarStrix DarkStarStrix added bug Something isn't working help wanted Extra attention is needed dependencies Pull requests that update a dependency file labels Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant