quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.28k stars 1.02k forks source link

Support Python 3.12 #6460

Closed pavoljuhas closed 6 months ago

pavoljuhas commented 9 months ago

Description of the issue

The current development requirements in dev_tools/requirements/dev.env.txt do not work, because pylatex~=1.3.0 does not install on Python 3.12.1. There may be possibly more incompatible packages which were enqueued for installation after pylatex.

$ pip3.12 install "pylatex~=1.3.0"
...
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [end of output]

Cirq version

1.4.0.dev at c3de7064224b8c2aec91646e83184b03b35b2010

NoureldinYosri commented 9 months ago

related to this, should we drop python3.9?

maffoo commented 9 months ago

If we're following numpy's schedule, the date to drop python 3.9 support is April 5, 2024: https://numpy.org/neps/nep-0029-deprecation_policy.html#drop-schedule