# Installation `python-qecx` needs Python 3.12 or newer. It is imported as `qecx`. ## Core install ```bash pip install python-qecx ``` The core install loads, validates, edits and writes QECX files. It also parses their OpenQASM 3 circuits into Qiskit circuits and provides the [`qecx` command](command_line.md). ## Viewer extra The `viewer` extra adds what a document needs to display itself in full: the HTML summary that Jupyter shows for a document, with circuit diagrams and layout drawings, and color and syntax highlighting in the terminal. ```bash pip install "python-qecx[viewer]" ``` Without it, terminal output is plain text, and the Jupyter summary shows a note in place of each drawing. ## From a checkout To install from a clone of the repository, run this from its root folder: ```bash pip install -e ".[viewer]" ``` The install is editable, so changes to the source take effect without reinstalling. To work on the package itself, install the `dev` dependency group with [uv](https://docs.astral.sh/uv/) instead. It holds the test, lint, notebook and docs tooling: ```bash uv sync --group dev ```