Tutorials#
Welcome to the tutorial of Qrisp! This page will help you get started by providing step-by-step instructions and examples. Whether you’re a beginner or an experienced quantum programmer, these tutorials provide a helping hand exploring the fundamentals of the framework and make you familiar with its syntax and features.
Getting familiar with Qrisp

Description
You will, well, get familiar with Qrisp. After being stimulated to replace thinking with quantum cirtuits with thinking with QuantumVariables, you’ll learn to solve a quadratic equation using Grover’s algorithm and get acquainted with Quantum Phase Estimation.
Solving systems of linear equations via HHL

Description
The Harrow-Hassidim-Lloyd (HHL) quantum algorithm offers an exponential speed-up over classical methods for solving linear system problems \(Ax=b\) for certain sparse matrices \(A\). The tutorial demonstrates hybrid quantum-classical workflows using the Catalyst framework and highlights how Qrisp and Catalyst work together for implementing and compiling advanced quantum algorithms.
Fault-Tolerant compilation

Description
This tutorial delves into the realm of compiling for fault-tolerant quantum devices, exploring the specialized techniques and considerations that set this stage apart from the compilation challenges encountered in NISQ environments. At the end you will also optimize the implementation of Shor’s from the tutorial above.
Solving combinatorial optimization problems with QAOA

Description
This tutorial will break down the theory behind this promising algorithm before implementing it for the MaxCut problem, the graph coloring problem, as well as providing a new constrained mixer type letting you reduce the search space! We also include tutorials on how to solve QUBO problems and portfolio rebalancing with QAOA. Disclaimer: the tutorial might or might not involve crayons.
Along the way, we’ll introduce you to important concepts and techniques that you’ll need to know in order to write highly efficient algorithms in Qrisp. We encourage you to follow along with the examples and try out the code for yourself. Don’t worry if you make mistakes or don’t understand something right away - programming is a process of learning and experimentation, and it takes time to become proficient.
By the end of this tutorial, you’ll have a solid foundation of our high-level framork and be ready to tackle more complex projects. So let’s get started!