Type-safe Quantum Programming in Idris
Variational Quantum Algorithms are hybrid classical-quantum algorithms where classical and quantum computation work in tandem to solve computational problems. These algorithms create interesting challenges for the design of suitable programming languages. In this paper we introduce Qimaera, which is a set of libraries for the Idris 2 programming language that enable the programmer to implement hybrid classical-quantum algorithms where the full power of the elegant Idris language works in synchrony with quantum programming primitives. The two key ingredients of Idris that make this possible are (1) dependent types which allow us to implement unitary quantum operations; and (2) linearity which allows us to enforce fine-grained control over the execution of quantum operations so that we may detect and reject many physically inadmissible programs. We also show that Qimaera is suitable for variational quantum programming by providing implementations of two prominent variational quantum algorithms - QAOA and VQE.
WOS:001284040300019
École Polytechnique Fédérale de Lausanne
Universite de Lorraine
Universite de Lorraine
2023-01-01
Cham
978-3-031-30043-1
978-3-031-30044-8
Lecture Notes in Computer Science; 13990
0302-9743
1611-3349
507
534
REVIEWED
EPFL
Event name | Event acronym | Event place | Event date |
Paris, FRANCE | 2023-04-22 - 2023-04-27 | ||