How to install tqec#

Requirements#

Python version#

The tqec package only supports Python 3.10 and later. If you have Python 3.9 or earlier, please update your Python installation.

Installation procedure#

Install the tqec package#

The tqec package is a regular Python package that can be installed using pip.

Install from source:

python -m pip install git+https://github.com/tqec/tqec.git
uv pip install git+https://github.com/tqec/tqec.git

Install from pypi (requires git):

pip install tqec
uv pip install tqec

And that’s it! You can test the installation by running

python -c "import tqec"

If the installation succeeded, the command should return without any message displayed. Otherwise, a message like

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'tqec'

should appear.