\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[margin=1in]{geometry} \usepackage{amsmath,amssymb,amsthm,mathtools,microtype,booktabs,array} \usepackage[hidelinks,pdfusetitle]{hyperref} \hypersetup{pdfauthor={Zhongpai Gao}, pdfsubject={Quantum memory for conditional future generation}} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{remark}[theorem]{Remark} \newcommand{\E}{\mathbb E} \newcommand{\KL}{D_{\mathrm{KL}}} \newcommand{\tr}{\operatorname{tr}} \newcommand{\Gc}{G^{\mathrm{cl}}} \newcommand{\Gq}{G^{\mathrm q}} \newcommand{\Mc}{M_{\mathrm{cl}}} \newcommand{\Mq}{M_{\mathrm q}} \newcommand{\id}{\operatorname{id}} \newcommand{\Ber}{\operatorname{Ber}} \DeclareMathOperator{\rank}{rank} \setlength{\emergencystretch}{1.5em} \title{Classical and Quantum Memory for Conditional Future Generation} \author{Zhongpai Gao\\[2pt] \small United Imaging Intelligence, Boston, MA, USA} \date{} \begin{document} \maketitle \begin{abstract} A finite memory observes a hidden Markov source one symbol at a time and then generates its conditional future. We measure the Kullback--Leibler divergence between the laws of the entire future after averaging the device's private randomness. Forecasts are linear in a space of dimension $r_D=D$ for $D$ classical states and $r_D=D^2$ for quantum dimension $D$. We construct positive updates that track functions of the hidden posterior. For every strictly positive source of word-probability rank $\rho\ge2$, the resulting error is $O(\exp(-c r_D^{1/(\rho-1)}))$. For invertible sources whose rank equals their hidden-state count, a unified converse uses matrices of reciprocal likelihood pairings. It gives matching lower bounds when the posterior and likelihood sets both contain open regions. This class includes a nonempty open set of $n$-state, $n$-symbol sources for each $n$. It also gives matching bounds for every positive invertible non-iid two-state source. In these cases, accuracy $\varepsilon$ requires order $\log^{n-1}(1/\varepsilon)$ classical states and its square root in quantum dimension. Two boundary examples show why the assumptions matter: an invertible three-state source on a posterior curve has a faster upper bound, while a singular two-state source has error $\exp[-\Theta(r_D\log(r_D+1))]$. All persistent observation and generation memory is counted. Constants depend on the known source; finite precision and running time are not addressed. \end{abstract} \noindent\textbf{Index terms:} Hidden Markov models, quantum memory, approximation, relative entropy. \input{src/introduction.tex} \input{src/model.tex} \input{src/stationary.tex} \input{src/physical.tex} \input{src/tools.tex} \input{src/universal.tex} \input{src/lower_bounds.tex} \section{Discussion}\label{sec:discussion} A device of size $D$ has forecasts factoring through dimension $r_D$, and the source asks it to follow a nonlinear recursion. Storing monomials of the posterior does this with error $e^{-cK}$ at a cost of about $K^{m}$ parameters, where $m+1$ is the rank of the source. Conversely, well conditioned test points in the posterior set and the likelihood set force every device to have many parameters. When the two sets fill open regions, or when the source is positive, invertible, non-iid and has two hidden states, the two bounds have the same order. In these cases the quantum dimension is of square-root order in the classical state count. The saving is a factor of two in qubits against bits, at a memory size of order $\log\log(1/\varepsilon)$ bits. It comes from the size of the state space; the devices constructed here measure and re-prepare their register at every block update. The main open question is what determines the rate when the posterior set is thin. The curve source of Appendix~\ref{app:curve-three} has rank three and a faster upper bound; no matching lower bound is proved for it. Theorem~\ref{thm:nodes} reduces such lower bounds to a question about two sets: how many of their points can be chosen with a well conditioned reciprocal matrix. Beyond the two cases treated here we do not know the answer, in particular when the sets are fractal. Sources with singular symbol matrices are outside Theorem~\ref{thm:nodes}, because the reciprocal identity uses the inverse matrices. Appendix~\ref{app:singular-boundary} shows that this is a substantive boundary: a positive singular two-state source has the faster $\exp[-\Theta(r_D\log(r_D+1))]$ order. Its proof uses the same feature and forecast-rank methods, without the inverse identity. The constants in all bounds depend on the source and can be very large, and the bounds are asymptotic. The devices use exact real coefficients. We prove nothing about running time, finite precision or total hardware. \section*{AI assistance and responsibility} OpenAI Codex and Anthropic Claude assisted with mathematical derivations, computational checks, literature comparison and drafting. The author is responsible for the statements, proofs, citations and computations. The recorded reviews are checks made within the project, not external peer review or formal verification. \section*{Data and code} No empirical dataset is used. Scripts in exact and floating-point arithmetic check finite instances of the identities and inequalities in Sections~\ref{sec:universal}--\ref{sec:two-state}. They support the written proofs and do not replace them. \appendix \input{src/curve_three.tex} \input{src/singular_boundary.tex} \input{src/references.tex} \end{document}