zxcalc / pyzx

Python library for quantum circuit rewriting and optimisation using the ZX-calculus
Apache License 2.0
380 stars 114 forks source link

use Python's native `@deprecated` decorator #204

Open dlyongemallo opened 5 months ago

dlyongemallo commented 5 months ago

Starting in Python 3.13, there will be a native @deprecated decorator. This should be used instead of merely printing deprecation warnings (using print), as such usages can be caught by automation tools.

jvdwetering commented 5 months ago

It's good to have this on record, but I'm assuming we will only start assuming a basic version of Python 3.13 several years from now.