quantumlib / OpenFermion-Cirq

Quantum circuits for simulations of quantum chemistry and materials.
Apache License 2.0
275 stars 87 forks source link

Deprecate module attributes XXYY, YXXY, CXXYY, CYXXY #375

Closed kevinsung closed 4 years ago

kevinsung commented 4 years ago

Achieves this by wrapping the modules in a class that defines __getattr__. See https://stackoverflow.com/questions/922550/how-to-mark-a-global-as-deprecated-in-python. The diff for the first commit may be easier to read; the second one is just formatting.

viathor commented 4 years ago

Thanks!

kevinsung commented 4 years ago

Not sure why Travis is suddenly asking me to lint every file but so be it...