Operator-Valued Q-Learning: Compositional Bellman Recursions for Order-Sensitive Decision Making
Organizations: Electronics and Communication Sciences Unit, Indian Statistical Institute, Kolkata. · Indian Statistical Institute, Kolkata.
Abstract
In quantum pulse sequences, spacecraft attitude control and in-hand reorientation, actions act on a hidden physical state as non-commuting operators, so the outcome of a plan depends on the order of its actions. We let the value function carry this structure: each Q(s,a) is an N x N operator, and the Bellman backup applies the action's dual map to the continuation value, Q(s,a) = K_a^*(R(s,a) + gamma E V(s')). Unrolled along a plan, the recursion builds the ordered product of the actions' operators, and the value at any latent state is a linear trace readout. It is exact for policies that do not observe the latent, the backup contracts for unitary and orthogonal dynamics, and an asynchronous operator TD scheme learns it with almost-sure convergence. Classical values live in a lattice, so a maximum over actions exists; self-adjoint operators form an anti-lattice (Kadison) and have none. An operator log-sum-exp still gives one operator per state-action pair whose readout upper-bounds the value of every policy at every latent state. The sampled update converges to it for a finite horizon, and it reduces to soft Q-learning and the QMDP bound when actions commute. We prove that scalar values on observations that ignore action order must confuse swapped histories, that exact history tables grow exponentially for free action groups but polynomially for nilpotent ones, and give a Hankel-rank lower bound on the operator dimension. In experiments the learned policy matches 1000-simulation tree search on SO(3) pointing for horizons up to 20 at ~10^4 times lower decision cost, transfers zero-shot to unseen initial states, and acts exactly on its belief mean when the initial state is hidden, where plugging the mean into a DQN does not. A planner with the same model knowledge is more sample-efficient at short horizons, and a DQN given the operators matches or exceeds OpQ.
Figures & tables
| C1 random OLDP | C2 pointing | C3 two-qubit prep. | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Agent | fixed | random | transfer | fixed | random | transfer | fixed | random | transfer |
| OpQ-soft (learned ) | 0.84 | 0.95 | 0.95 | 0.98 | 0.99 | 0.99 | 0.83 | 0.68 | 0.68 |
| OpQ-soft (known ) | 0.84 | 0.95 | – | 0.98 | 0.99 | – | 0.79 | 0.68 | – |
| OpQ-PI | 0.86 | 0.97 | 0.97 | 0.91 | 0.98 | 0.98 | 0.28 | 0.70 | 0.70 |
| Scalar on | 0.87 | 0.51 | – | 0.69 | 0.06 | – | 0.19 | 0.10 | – |
| Scalar , history table | 0.94 | 0.50 | – | 0.75 | 0.05 | – | 0.28 | -0.04 | – |
| C1 random OLDP | C2 pointing | C3 two-qubit | |||||
|---|---|---|---|---|---|---|---|
| Agent | 100 | 3000 | 100 | 3000 | 100 | 3000 | |
| DQN on (nonlinear) | unknown | 0.89 | 0.99 | 0.73 | 0.99 | 0.04 | 0.87 |
| DQN data (nonlinear) | known | 0.93 | 0.99 | 0.82 | 0.99 | 0.22 | 0.86 |
| Linear-Q (linear) | unknown | 0.77 | 0.96 | 0.57 | 0.95 | 0.25 | 0.54 |
| OpQ-soft (linear) | known | 0.95 | 0.95 | 0.95 | 0.99 | 0.58 | 0.68 |
| Linear-Q data (linear) | known | 0.96 | 0.97 | 0.91 | 0.97 | 0.41 | 0.69 |
Appendix figures & tables30 assets
Supplementary material from the paper’s appendix.
Appendix
| Claim | Exp | Prediction / outcome |
|---|---|---|
| P 1 exact representation | E17, E18 | readout exact expected return ( ); zero-shot transfer across |
| T 1 operator TD | E17, E18 | ; OpQ-PI |
| P 2 improvement | E18 | OpQ-PI improves on the uniform policy |
| T 2 certificate | E17, E18 | violations; ; slack consistent with OpQ-soft’s ceiling |
| P 3 reduction | E9, E17 | exact collapse to soft -learning; slack at pure eigenstates |
| P 6 Lipschitz | E7 | commuting ratio ; at ; non-commuting ratio , growing in |
| Exp | Tests | Setup | Headline result |
|---|---|---|---|
| E7 | Prop. 6 | Commuting/generic pairs; construction; -digit checks | Commuting ratio ; vs. ; non-commuting at |
| E8, E13 | Prop. 10 | Random orthogonal, , , | OpQ at : (125 params); best baseline LSTM 0.033 (17729 params) |
| E9 | Prop. 3 | Diagonal unitaries, | Coincides with soft -learning to |
| E10 | Prop. 9 | vs. , matched norm, | : constant per-depth term ; : zero beyond depth one |
| E12 | Prop. 7 | , , | commuting vs. generic violations; persists at scale |
| E14 | Prop. 10 | , , | OpQ at : (63 params); best baseline LSTM 0.003 (18241 params) |
| C1 random OLDP | C2 pointing | C3 two-qubit prep. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| fixed | random | fixed | random | fixed | random | |||||||
| Agent | 100 | 3000 | 100 | 3000 | 100 | 3000 | 100 | 3000 | 100 | 3000 | 100 | 3000 |
| OpQ-soft (learned ) | 0.77 | 0.84 0.01 | 0.95 | 0.95 0.00 | 0.94 | 0.98 0.00 | 0.95 | 0.99 0.00 | 0.38 | 0.83 0.08 | 0.58 | 0.68 0.00 |
| OpQ-soft (known ) | 0.78 | 0.84 0.01 | 0.95 | 0.95 0.00 | 0.95 | 0.98 0.00 | 0.96 | 0.99 0.00 | 0.67 | 0.79 0.00 | 0.63 | 0.68 0.00 |
| OpQ-PI | 0.84 | 0.86 0.00 | 0.96 | 0.97 0.01 | 0.95 | 0.91 0.04 | 0.96 | 0.98 0.00 | 0.28 | 0.28 0.00 | 0.59 | 0.70 0.00 |
| Scalar on | 0.68 | 0.87 0.06 | 0.42 | 0.51 0.03 | 0.37 | 0.69 0.01 | 0.05 | 0.06 0.07 | 0.22 | 0.19 0.42 | 0.02 | 0.10 0.12 |
| Greedy readout of exact (known model) | Exact OpQ-PI | ||||
|---|---|---|---|---|---|
| Environment / regime | (Prop. 2 ) | ||||
| random OLDP, fixed | 0.76 (2.30) | 0.76 (1.94) | 0.86 (1.88) | 0.87 (1.94) | 0.86 |
| random OLDP, random | 0.97 (1.73) | 0.95 (1.48) | 0.95 (1.43) | 0.96 (1.48) | 0.97 |
| pointing, fixed | 0.88 (2.44) | 0.99 (1.72) | 0.99 (1.32) | 0.98 (1.19) | 0.88 |
| pointing, random | 0.98 (2.43) | 0.99 (1.69) | 0.99 (1.30) | 0.99 (1.18) | 0.98 |
| two-qubit preparation, fixed | 0.28 (11.69) | 0.79 (6.17) | 0.79 (3.02) | 0.79 (2.01) | 0.28 |
| Orthogonal (E8/E13) | (E14) | (E16) | Displacements (E15) | |||||
| Model | params | test MSE | params | test MSE | params | test MSE | params | test MSE |
| Scalar order-blind | 19 | 0.095 | 41 | 0.303 | 41 | 0.861 | 31 | 0.116 |
| Windowed table | 64 | 0.094 | 216 | 0.277 | 216 | 0.730 | 156 | 0.115 |
| GRU, hidden 4 | 113 | 0.077 | 137 | 0.062 | 137 | 0.363 | 137 | 0.058 |
| GRU, hidden 16 | 1025 | 0.041 | 1121 | 0.010 | 1121 | 0.106 | 1121 | 0.042 |
| GRU, hidden 64 | 13313 | 0.040 | 13697 | 0.005 | 13697 | 0.092 | 13697 | 0.064 |
| C1 | C2 | C3 | ||||
|---|---|---|---|---|---|---|
| Agent | train | held-out | train | held-out | train | held-out |
| DQN on | 0.00 | 0.04 | 0.01 | 0.02 | 0.00 | 0.11 |
| DQN + data | 0.00 | 0.00 | 0.01 | 0.00 | 0.00 | 0.03 |
| DQN + data, reachable | 0.00 | 0.02 | 0.01 | 0.01 | 0.00 | 0.04 |
| Linear-Q | 0.00 | 0.03 | 0.02 | 0.02 | 0.00 | 0.05 |
| Linear-Q + data | 0.00 | 0.01 | 0.02 | 0.00 | 0.24 | 0.01 |
| C1 | C2 | C3 | |
| Normalised return at the training latent / on held-out latents | |||
| Exhaustive search, model from 25 episodes | |||
| Exhaustive search, model from 50 episodes | |||
| Exhaustive search, model from 100 episodes | |||
| MCTS, 100 simulations, model from 100 episodes | |||
| MCTS, 1000 simulations, model from 100 episodes | |||
| OpQ-soft | Linear-Q | DQN | DQN + | MCTS-100 | MCTS-1000 | Exhaustive | ||
| C1 | 6 | |||||||
| 8 | ||||||||
| 10 | ||||||||
| 12 | – | |||||||
| C2 | 8 | |||||||
| 10 | – |
| OpQ-soft | Linear-Q | DQN | DQN + | MCTS-100 | MCTS-1000 | Exhaustive | ||
| C1 | 6 | |||||||
| 8 | ||||||||
| 10 | ||||||||
| 12 | – | |||||||
| C2 | 8 | |||||||
| 10 | – |
| cert. | nodes | OpQ-soft | MCTS-1000 | Exhaustive | |||
| C1 | 6 | ||||||
| 8 | |||||||
| 10 | |||||||
| 12 | † | – | |||||
| C2 | 8 | ||||||
| 10 | † | – |
| C1 random OLDP | C2 SO(3) pointing | C3 two-qubit | |||||
|---|---|---|---|---|---|---|---|
| Agent | 100 | 3000 | 100 | 3000 | 100 | 3000 | |
| DQN on (nonlinear) | unknown | 0.02 | 0.00 | 0.06 | 0.01 | 0.16 | 0.00 |
| DQN + data (nonlinear) | known | 0.08 | 0.00 | 0.03 | 0.01 | 0.33 | 0.00 |
| Linear-Q (linear) | unknown | 0.08 | 0.00 | 0.06 | 0.02 | 0.14 | 0.00 |
| OpQ-soft (linear) | known | 0.06 | 0.01 | 0.02 | 0.00 | 0.20 | 0.08 |
| Linear-Q + data | known | 0.04 | 0.00 | 0.02 | 0.02 | 0.13 | 0.24 |
| C1 random OLDP | C2 SO(3) pointing | C3 two-qubit | |||||
|---|---|---|---|---|---|---|---|
| Agent | 100 | 3000 | 100 | 3000 | 100 | 3000 | |
| DQN on (nonlinear) | unknown | 0.03 | 0.00 | 0.04 | 0.00 | 0.12 | 0.02 |
| DQN + data (nonlinear) | known | 0.03 | 0.00 | 0.03 | 0.00 | 0.15 | 0.02 |
| Linear-Q (linear) | unknown | 0.06 | 0.02 | 0.04 | 0.01 | 0.10 | 0.08 |
| OpQ-soft (linear) | known | 0.01 | 0.00 | 0.01 | 0.00 | 0.07 | 0.00 |
| Linear-Q + data | known | 0.01 | 0.00 | 0.02 | 0.01 | 0.11 | 0.01 |
| C1 random OLDP | C2 SO(3) pointing | C3 two-qubit | ||||
|---|---|---|---|---|---|---|
| Aggregator | score | cert./ | score | cert./ | score | cert./ |
| , (OpQ) | 0.86 / 0.95 | 1.88 / 1.44 | 0.99 / 0.99 | 1.32 / 1.30 | 0.79 / 0.68 | 3.02 / 3.23 |
| , | 0.87 / 0.97 | 2.00 / 1.51 | 0.98 / 0.99 | 1.13 / 1.12 | 0.79 / 0.68 | 1.50 / 1.62 |
| trace-minimal SDP (Cor. 2 ) | 0.84 / 0.96 | 1.67 / 1.27 | 0.87 / 0.98 | 1.64 / 1.58 | 0.28 / 0.64 | 1.79 / 1.83 |
| 1 | 2 | 4 | 8 | 16 | 32 | 64 | |
|---|---|---|---|---|---|---|---|
| C1 training latent | 0.89 | 0.86 | 0.96 | 0.98 | 0.97 | 1.00 | 1.00 |
| C1 held-out | 0.78 | 0.85 | 0.90 | 0.94 | 0.98 | 0.99 | 1.00 |
| C2 training latent | 0.83 | 0.84 | 0.81 | 0.93 | 0.95 | 0.98 | 0.98 |
| C2 held-out | 0.71 | 0.80 | 0.78 | 0.84 | 0.89 | 0.95 | 0.98 |
| C3 training latent | 0.53 | 0.77 | 0.67 | 1.00 | 1.00 | 1.00 | 1.00 |
| C3 held-out | 0.64 | 0.73 | 0.78 | 0.82 | 0.88 | 0.92 | 0.95 |
| loss | bound of Prop. 4 | mean spread | mean spread | min. slack | ||
|---|---|---|---|---|---|---|
| C1 training latent | 4.17 | 0.581 | 3.544 | 0.645 | 15.5% | |
| C1 held-out (mean) | 5.98 | 0.275 | 2.767 | 0.511 | 8.6% | |
| C2 training latent | 6.20 | 0.041 | 0.847 | 0.121 | 2.0% | |
| C2 held-out (mean) | 6.06 | 0.049 | 1.137 | 0.157 | 2.7% | |
| C3 training latent | 1.00 | 0.146 | 0.666 | 0.083 | 8.3% | |
| C3 held-out (mean) | 0.92 | 0.217 | 0.678 | 0.085 | 9.2% |
| certificate greedy | depth 3, zero leaf | depth 3, cert. leaf | depth 5, zero leaf | depth 5, cert. leaf | |
|---|---|---|---|---|---|
| 8 | 0.85 / 0.73 | 0.85 / 0.80 | 0.85 / 0.84 | 1.00 / 0.84 | 1.00 / 0.87 |
| 10 | 0.73 / 0.74 | 0.73 / 0.77 | 0.85 / 0.85 | 0.85 / 0.83 | 0.86 / 0.90 |
| 12 | 0.85 / 0.80 | 0.85 / 0.72 | 0.85 / 0.85 | 1.00 / 0.87 | 1.00 / 0.92 |
| Statement | What is proved | Conditions and limits |
|---|---|---|
| Policy evaluation (Prop. 1 , Thm. 1 ) | Exact operator representation of latent-blind values; operator TD converges a.s. | Fixed policy; ; full-support sampling; Robbins–Monro steps. |
| Policy improvement (Props. 2 , 11 ) | Latent-aware greedy improvement over a latent-blind base; robust to -accurate estimates. | One improvement step (OpQ-PI); no iteration guarantee. |
| Finite-horizon certificate (Thm. 2 , Cor. 2 ) | for every policy, latent-aware included. | Exact model; CP; any Löwner upper-bound aggregator. |
| Infinite-horizon certificate (Thm. 2 ) | -step truncations are certificates up to ; the fixed point is one if contracts. | Contraction holds on the commuting sector; in generality needs . |
| Sampled soft update, finite horizon (OpQ-soft; Thm. 3 ) | Converges a.s. to the certificate at every reachable entry. | Robbins–Monro steps; every reachable entry updated infinitely often; . Limit is , not . E18–E23 use a step floor (E24 measures its effect; E22: no divergence in 108 runs). |
| Sampled soft update, infinite horizon | No convergence result. | is not monotone or non-expansive (Props. 6 , 7 ); contraction needs . |
| OpQ, observed | OpQ, tracked | exhaustive, observed | exhaustive, tracked | ||
|---|---|---|---|---|---|
| C1 random OLDP | 0 | 0.86 / 0.97 | 0.86 / 0.97 | 1.00 / 1.00 | 1.00 / 1.00 |
| 0.01 | 0.77 / 0.97 | 0.77 / 0.97 | 1.00 / 1.00 | 1.00 / 1.00 | |
| 0.03 | 0.77 / 0.97 | 0.80 / 0.97 | 1.00 / 1.00 | 1.00 / 1.00 | |
| 0.1 | 0.80 / 0.97 | 0.82 / 0.96 | 0.99 / 1.00 | 1.00 / 0.98 | |
| 0.3 | 0.82 / 0.94 | 0.79 / 0.85 | 0.93 / 0.94 | 0.95 / 0.88 | |
| C2 SO(3) pointing | 0 | 0.99 / 1.00 | 0.99 / 1.00 | 1.00 / 1.00 | 1.00 / 1.00 |
| certificate | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| C1 random OLDP, training latent | 4.17 | 7.83 | 2.92 | 3.28 | 3.63 | 3.91 | 3.95 | 4.13 | 4.15 |
| C1 random OLDP, held-out | 5.89 | 8.47 | 0.91 | 2.42 | 3.62 | 3.93 | 5.09 | 5.42 | 5.70 |
| C2 SO(3) pointing, training latent | 6.20 | 8.18 | 4.66 | 4.94 | 5.02 | 5.74 | 5.96 | 6.09 | 6.13 |
| C2 SO(3) pointing, held-out | 6.08 | 7.87 | 2.61 | 3.21 | 3.49 | 3.90 | 5.07 | 5.30 | 5.60 |
| C3 two-qubit, training latent | 1.00 | 3.02 | 0.67 | 0.84 | 0.77 | 1.00 | 1.00 | 1.00 | 1.00 |
| C3 two-qubit, held-out | 0.92 | 2.99 | 0.24 | 0.39 | 0.50 | 0.54 | 0.66 | 0.65 | 0.75 |
| C1 | C2 | C3 | ||||
|---|---|---|---|---|---|---|
| build(s)/decision(ms) | numbers | build(s)/decision(ms) | numbers | build(s)/decision(ms) | numbers | |
| 1 | 0.001 / 0.11 | 108 | 0.003 / 0.07 | 144 | 0.006 / 0.06 | 1152 |
| 8 | 0.018 / 0.50 | 864 | 0.048 / 0.24 | 1152 | 0.093 / 0.14 | 9216 |
| 32 | 0.196 / 1.16 | 3456 | 0.560 / 0.85 | 4608 | 1.031 / 0.97 | 36864 |
| 64 | 0.736 / 1.92 | 6912 | 1.662 / 1.72 | 9216 | 3.858 / 0.82 | 73728 |
| 0.5 | 1 | 2 | 5 | 10 | 20 | |
|---|---|---|---|---|---|---|
| C1 fixed | 0.86/0.86/0% | 0.79/0.76/0% | 0.74/0.76/0% | 0.84/0.86/0% | 0.87/0.87/0% | 0.87/0.87/1% |
| C1 random | 0.96/0.96/1% | 0.97/0.97/2% | 0.96/0.95/1% | 0.95/0.95/0% | 0.96/0.96/0% | 0.97/0.97/1% |
| C2 fixed | 0.88/0.88/5% | 0.91/0.88/7% | 0.94/0.99/14% | 0.98/0.99/3% | 0.98/0.98/1% | 0.98/0.98/5% |
| C2 random | 0.97/0.98/2% | 0.98/0.98/2% | 0.98/0.99/2% | 0.99/0.99/2% | 0.99/0.99/0% | 0.99/0.99/0% |
| C3 fixed | 0.28/0.28/0% | 0.28/0.28/0% | 0.62/0.79/1% | 0.86/0.79/5% | 0.45/0.79/6% | 0.45/0.79/0% |
| C3 random | 0.70/0.70/0% | 0.70/0.70/0% | 0.69/0.69/0% | 0.68/0.68/0% | 0.68/0.68/1% | 0.65/0.68/1% |
| Agent | knows | latent in training | C1 | C2 | C3 |
|---|---|---|---|---|---|
| OpQ-soft, learned | no | 0.30 / 0.96 0.00 | 0.07 / 0.97 0.00 | 0.11 / 0.46 0.24 | |
| OpQ-soft, known | , | no | 0.84 / 0.96 0.00 | 0.97 / 0.98 0.00 | 0.53 / 0.79 0.00 |
| DQN on belief mean | (via ) | no | 0.85 / 0.97 0.02 | 0.64 / 0.91 0.04 | / 1.00 0.00 |
| History table | none | no | 0.48 / 0.97 0.01 | 0.32 / 0.72 0.01 | 0.28 / 0.28 0.00 |
| OpQ-soft, known , plug-in | , | yes | 0.84 / 0.96 0.00 | 0.96 / 0.98 0.00 | 0.38 / 0.79 0.00 |
| DQN, plug-in | none | yes | 0.86 / 0.85 0.08 | 0.66 / 0.95 0.01 | / 0.45 0.24 |
| belief purity | oracle score | value at / MC over draws | decision (ms): OpQ / blind search | |||
|---|---|---|---|---|---|---|
| C1 random OLDP | 0.49 | 3.913 | 1.49 | 3.743 / 3.775 0.081 | 0.011 / 2 | |
| C2 SO(3) pointing | 0.50 | 4.197 | 2.683 | 2.32 | 4.180 / 4.224 0.083 | 0.013 / 941 |
| C3 two-qubit | 0.32 | 0.472 | 0.266 | 3.27 | 0.429 / 0.437 0.011 | 0.012 / 737 |
| largest error, | floor | mean error, 30,000 | score | |||||
| Environment | 100 ep. | 1000 ep. | 30,000 ep. | 30,000 ep. | floor | learned | exact | |
| C1 random OLDP | 0.25 | 0.019 | 0.0098 | 0.0093 | 0.0018 | 0.0024 | 0.952 | 0.952 |
| C2 SO(3) pointing | 0.42 | 0.0095 | 0.0027 | 0.0036 | 0.0008 | 0.0011 | 0.986 | 0.986 |
| C3 two-qubit prep. | 0.30 | 0.0045 | 0.680 | 0.680 | ||||
Q-Learning
Q-learning estimates long-term action values from experience so agents can improve decisions without a learned transition model.
See all 122 papers