quantumlib / Cirq

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

Scripts in dev_tools would benefit from updated and additional documentation #6733

Open mhucka opened 1 week ago

mhucka commented 1 week ago

Description of the issue

Most of the scripts in dev_tools/ do are not described anywhere, most don't support a --help or similar command-line argument, and most either lack a usage description in comments within the file, or what is there is out of date. For example, dev_tools/modules.py has a usage docstring at the top of the file (and prints it if you run it with --help), but the code accepts other arguments that are not mentioned.

It would benefit developers to add a README file to dev_tools/ that summarizes the contents of that directory, and also to add usage info (preferrably via a --help argument if possible, or at least comments at the top of the file) to those scripts that are meant to be invoked from the command line.

How to reproduce the issue

Inspecting the dev_tools/ directory and the code therein, the issue becomes evident.

Cirq version

1.5.0.dev