Qrisp is open-source

2 minute read

Documentation
GitHub

!!! Big News !!!

After more than two years of hard work and a lot of research we finally released a first version of our high-level quantum programming framework Qrisp developed at Fraunhofer FOKUS. We are confident, that Qrisp will have a huge impact on how we interact with and program quantum computers in the future. Qrisp offers a simplified, intuitive syntax and it is not necessary anymore to interact with gate-level objects.

If you’re curious about how the next generation quantum programs look like you can have a look in the documentation or even better: try Qrisp yourself! It’s available via PyPi and GitHub.

We also want to express our gratitude for the main developer of Qrisp Raphael Seidel, who almost single-handedly designed and implemented Qrisp!

First Quantum Program with Qrisp

To give you a first impression what Qrisp programs look like, we want to start with the most common first program there is: printing hello world. And to make it more interesting, we want to spice it up a bit and make it quantum.

For this we can make use of the QuantumString type implemented in Qrisp. So we start by creating a new variable of the type QuantumString and assign the value ‘hello world’:

from qrisp import QuantumString

q_str = QuantumString()
q_str[:] = "hello world"

print(q_str)

With the print(q_str) command, we automatically simulate the circuit generated when assigning hello world to q_str. As expected we get hello world with a probility of 1 as output:

{'hello world': 1.0}

Now, let’s make things more interesting: What happens, if we apply a Hadamard gate to the first qubit of the 7th character in our string?

from qrisp import h, QuantumString

q_str = QuantumString()
q_str[:] = "hello world"
h(q_str[6][0])

print(q_str)

Go on, install Qrisp and try it yourself!