TL;DR
PyEncode is an open-source Python library that efficiently encodes structured classical vectors into quantum states using various mathematical patterns, significantly reducing circuit complexity.
Contribution
It provides the first unified open-source implementation of theoretically efficient quantum encoding routines for multiple structured vector classes.
Findings
Efficient encoding circuits for ten structured vector families are implemented.
Encoding complexity varies from linear to polynomial in the number of qubits depending on the pattern.
The library includes tools for estimating gate counts and composing complex states.
Abstract
Quantum algorithms require encoding classical vectors as quantum states, a step known as amplitude encoding. General-purpose routines produce circuits with gates for vectors of length . However, vectors arising in scientific and engineering applications often exhibit mathematical structure that admits far more efficient encoding. Theoretical work over the last decade has established efficient circuits for several structured vector classes, but without open-source implementations. We present \textbf{PyEncode}, an open-source Python library that implements this body of theory in a unified framework. It covers ten exact pattern families: \emph{sparse, step, square, Walsh, Fourier, geometric, Hamming, staircase, Dicke}, and \emph{polynomial}. A function \texttt{encode} maps each pattern to a verified Qiskit circuit, with no vector materialization and no…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
