Block-encoding is a foundational technique in modern quantum algorithms, enabling the implementation of non-unitary operations by embedding them into larger unitary matrices. While theoretically powerful and essential for advanced protocols like Quantum Singular Value Transformation (QSVT) and Quantum Signal Processing (QSP), the generation of compilable implementations of block-encodings poses a formidable challenge. This work presents the BlockEncoding interface within the Eclipse Qrisp framework, establishing block-encodings as a high-level programming abstraction accessible to a broad scientific audience. Serving as both a technical framework introduction and a hands-on tutorial, this paper explicitly details key underlying concepts abstracted away by the interface, such as block-encoding construction and qubitization, and their practical integration into methods like the Childs-Kothari-Somma (CKS) algorithm. We outline the interface's software architecture, encompassing constructors, core utilities, arithmetic composition, and algorithmic applications such as matrix inversion, polynomial filtering, and Hamiltonian simulation. Through code examples, we demonstrate how this interface simplifies both the practical realization of advanced quantum algorithms and their associated resource estimation.
翻译:块编码是现代量子算法中的基础技术,它通过将非酉操作嵌入到更大的酉矩阵中来实现这些操作。尽管这项技术在理论上功能强大,并且对量子奇异值变换(QSVT)和量子信号处理(QSP)等高级协议至关重要,但生成可编译的块编码实现仍是一个严峻的挑战。本文介绍了Eclipse Qrisp框架中的BlockEncoding接口,将块编码确立为一种面向广大科学界用户的高层次编程抽象。本文既作为技术框架的介绍,也作为实践教程,详细阐述了接口所抽象的关键底层概念,例如块编码的构造和量子比特化,及其在Childs-Kothari-Somma(CKS)算法等方法中的实际集成。我们概述了该接口的软件架构,包括构造函数、核心工具、算术组合以及矩阵求逆、多项式滤波和哈密顿模拟等算法应用。通过代码示例,我们展示了该接口如何简化高级量子算法的实际实现及其相关的资源估算。