rigetti / pyquil

A Python library for quantum programming using Quil.
http://docs.rigetti.com
Apache License 2.0
1.39k stars 341 forks source link

`pyquil` is incompatible with `pyzx` because it depends on an old version of `lark` #1764

Closed dlyongemallo closed 1 month ago

dlyongemallo commented 2 months ago

Pre-Report Checklist

Issue Description

It is not possible to install pyquil and pyzx together in the same environment. I tried pyquil versions 3.2.0 to 4.8.0.

How to Reproduce

Code Snippet

pip install pyzx==0.8.0 pyquil==4.8.0

Error Output

ERROR: Cannot install pyquil==4.8.0 and pyzx==0.8.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    pyzx 0.8.0 depends on lark~=1.1.7
    pyquil 4.8.0 depends on lark<0.12.0 and >=0.11.1

Environment Context

Operating System: Linux

Python Version (python -V): Python 3.10.12

Quilc Version (quilc --version): N/A

QVM Version (qvm --version): N/A

Python Environment Details (pip freeze or conda list):

[empty: new virtual environment]