Skip to content

Fix: Compatibility with NetworkX and SymPy (Python 3.10+) - #2

Open
sethi-44 wants to merge 1 commit into
tiagomsleao:masterfrom
sethi-44:patch-2
Open

Fix: Compatibility with NetworkX and SymPy (Python 3.10+)#2
sethi-44 wants to merge 1 commit into
tiagomsleao:masterfrom
sethi-44:patch-2

Conversation

@sethi-44

Copy link
Copy Markdown

Summary

This pull request addresses compatibility issues with newer versions of NetworkX and SymPy, specifically for Python 3.10+.

Fixes

1. NetworkX Changes:

  • Replaced deprecated multi_graph.node with multi_graph._node in:
    • Unroller.py
    • _dagunroller.py
    • _dagcircuit.py

2. SymPy Changes:

  • Updated import in sympy/core/_real.py:
    • from sympy.printing.ccode import ccodefrom sympy.printing import ccode

Testing

These fixes were tested in a Conda environment (qiskit_env) with:

  • Python 3.10.11
  • qiskt 0.7.0
  • NetworkX 2.8+
  • SymPy 1.13.3

Additional Notes

  • Added patch_notes.md with instructions on applying these fixes manually.

Let me know if you require further changes or want me to downgrade any libraries for backward compatibility.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant