|
LibKet
LibKet - The Quantum Expression Template Library
|
LibKet (pronounced lib-ket) is a lightweight expression template library that allows you to develop quantum algorithms as backend-agnostic generic expressions and execute them on different quantum simulator and hardware backends without changing your code.
LibKet is designed as header-only C++ library with minimal external dependencies. All you need to get started is a C++14 compiler and, optionally, Python 3.x to execute quantum algorithms directly from within LibKet.
Have a look at the following code snipped to see how easy it is to generate the quantum algorithm for an n-qubit Quantum Fourier Transform (QFT) circuit and execute it on the Quantum Inspire simulator platform using 6-qubits:
Copyright (c) 2018-2021 Matthias Möller (m.moller@tudelft.nl).
In Dutch, 'Quantum' is spelled 'Kwantum', which explains the spelling LibKet. The name is an allusion to the famous bra-ket notation that is widely used for expressing quantum algorithms.