Skip to content

Quantinuum/tierkreis

Repository files navigation

Tierkreis

Quantum-classical hybrid workflow orchestration tool. This is the top level repository containing the python packages.

Quick-start

Tierkreis works best with the uv package manager. We strongly recommend using it as your package manager for Tierkreis projects.

To get started with Tierkreis start a new uv project in an empty directory with:

uv init

Then add Tierkreis to the project and run the project setup tool.

uv add tierkreis
uv run tkr init project

You can then run the generated example graph at tkr/graphs.main.py.

uv run tkr/graphs/main.py

For a more in depth tutorial see our full getting started guide.

Packages

  • Tierkreis: the core functionality uv add tierkreis
  • Tierkreis Visualization: A simple web visualization tool for debugging workflows uv add tierkreis-visualization
  • Tierkreis Workers: A collection of commonly used workers uv add tkr-<name>-worker
    • Qiskit Aer
    • Quantinuum Nexus
    • Quantinuum Pytket

CLI

Tierkreis comes with a command line interface for running workflows. To see all available options use tkr --help. To run the hello world example in this repository from the cli

uv run tkr run \
  -g docs/source/examples/hello_world.py:graph \
  -i docs/source/examples/data/world.json \
  --uv \
  --registry-path docs/source/examples/example_workers/ \
  -o

Explanation:

  • -g specifies the graph to run by specifying the location and function to run.
  • -i specifies the input for the graph function. In this case it loads a json file with the contents {"value": "World!"}
  • --uv enables the use of the UV executor.
  • --registry-path specifies the location of the registry to use for the UV executor.
  • -o enables output printing.

Development

Requirements

  • uv >= 0.9

See the justfile (requires just) for common development commands. For example:

just test

Documentation

Tierkreis documentation can be found on our GitHub Pages here.

To build the documentation locally, run the command in the top level justfile.

just docs

Documentation will be built in HTML format by default and will be available in the docs/build/html folder.

For documentation, we use the MyST parser with markdown files.

License

This project is licensed under Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).