web counter

Subroutines

From C/C++

Construct quantum subroutines from functions written in C and C++.

From Classical Code to
Quantum Circuits

Many quantum algorithms require classical processing on data in a quantum superposition. It is often challenging to implement complex classical computation using reversible quantum gates. Our compiler automates this process, allowing functions expressed in C and C++ to be compiled to partial quantum circuits, which are accessible as subroutines within Helium.

Easy and Adaptable Integration

In Triple Alpha, you can compile classical C/C++ functions to partial quantum circuit for use as Helium subroutines. This removes the need to design and code a quantum circuit by hand to implement the classical portion of a quantum algorithm, which may otherwise require anywhere from dozens to many millions of operations.

Write
Configure
Include
Write Functions in C/C++

We support a large subset of C/C++. You just have to provide your C/C++ files and a config c2q file to specify the function that you would like to use within Helium.

Configure Quantum Circuit Generation

The c2q file specifies how to generate a partial quantum circuit from C or C++ source code. It consists of information on the entry point to the classical code, together with optimisation settings to navigate performance trade-offs.

Include as a Subroutine in Your Helium Program

The generated subroutine can be included within your Helium programs with a single line of code and can be called as part of your programs, just like native Helium subroutines.