Advanced Examples¶
Once you have completed the beginners tutorial, you can look at advanced topics.
Building the examples¶
In the given examples you will be developing code involving Tierkreis workers.
Whenever you see an import containing *_worker this means one of the workers will be invoked (except for the builtins).
Important
To run the examples you will need to have the worker code available too. The simplest way to set this up is to clone the entire repository before running any of the examples.
git clone https://github.com/Quantinuum/tierkreis.git
To set up the environment we use uv:
cd tierkreis && uv sync --all-extras
Note that some third-party packages e.g. qulacs, automatically included via uv sync --all-extras, have other dependencies that you’ll need to have installed on your system first: CMake and Boost (>=1.71).
When running the notebooks select the kernel corresponding to the uv environment.
Runtime compatibility¶
The examples use the Rust runtime. parallelism relies on lazy loading of the
selected conditional branch, restart demonstrates attempt-based task
restarts, and scipy uses raw output retrieval for binary NumPy serializers.
errors_and_debugging demonstrates pausing, inspection, and resuming at
breakpoints. Simulator-heavy parallelism, credentialed Nexus, and HPC examples
require deployment-specific resources and are not executed by the documentation
build.
The types_and_defaults example demonstrates that omitted graph inputs use the
defaults captured by the typed graph builder.