← Back to digest

Comparing Qubit and Qudit Encodings for EV Charging and Trip Assignment Problems

Authors: Linus Ekström, Hao Wang, Sebastian Schmitt · arXiv: 2605.10255 · submitted 12 May 2026 · score 8/10 (HIGH)

Abstract

Variational quantum algorithms have attracted attention for their potential to solve combinatorial optimization problems. We study how the choice of encoding affects the resource requirements and optimization behavior of a variational quantum optimization algorithm. In order to quantify these effects, realistically inspired constrained electric vehicle (EV) fleet management problems were considered. These problems couple determining the optimal EV battery charging schedule with assigning EVs to trips requested by customers. We compare a conventional binary (qubit) trip encoding with an integer (qudit) encoding that represents assignments more directly. Both encodings guarantee the same feasible solution set, while the qudit encoding exponentially reduces the required Hilbert-space dimension. We solve many random instances of highly constrained uni- and bi-directional charging problems using qudit-based quantum approximate optimization algorithm (QAOA) and thoroughly evaluate the performance results. We find that the qudit encoding of customer trips achieves similar or better optimization performance at much reduced resource requirements and shorter simulation runtime. These results highlight qudit-native encodings as a practical route for integer and multi-valued scheduling problems in variational quantum optimization.

Executive summary

Ekström, Wang and Schmitt run QAOA on an EV-fleet charging+trip-assignment problem under two encodings: a conventional one-qubit-per-(EV,trip) binary encoding and an integer one-qudit-per-trip encoding whose value names the assigned EV (or 0 if unserved). Both encodings cover the same feasible set, but the qudit encoding shrinks Hilbert-space dimension exponentially in the number of trips R and EVs NEV. Across bi-directional (d=3, NEV=3, T=2, R=2) and uni-directional (d=2, NEV=2, T=3, R=2..4) instances, the qudit encoding matches or slightly beats the qubit one on success probability and mean energy gap, with substantially lower variance and dramatically faster simulation runtime. The result is the most direct empirical cousin to Y2's quasi-binary encoding argument in the published literature so far — same thesis (compact integer-aware encoding beats native binary on constrained QAOA), different problem class (EV fleet vs. portfolio optimization), and a published qudit mixer recipe Yuan can reuse.

Main contribution

The paper isolates encoding choice as a single experimental variable. In both formulations the charging variables ln,t are qudit (d-ary) integers, mixed via a Bottarelli/Deller-style angular-momentum mixer HX1,lΣi Lix + β2,lΣi (Liz)2. Only the trip-assignment variable changes: rn,i∈{0,1} (qubit, one per EV-trip pair) versus qi∈{0,...,NEV} (qudit, one per trip; qi=0 means unserved). The integer encoding removes the one-EV-per-trip constraint automatically, since equal qi values are forbidden only across overlapping trips. Hilbert dimension scaling is dim(Hint)/dim(Hbin) = 2−RNEV+R log2(NEV+1), i.e. exponentially smaller in R for any NEV≥2.

Key algorithms / experimental protocol

Detailed walkthrough

The setup (§II–III) is a clean ablation: the only thing changing between treatments is how trip assignment is represented. In the binary encoding, the algorithm must learn — through penalty terms — that two rn,i=1 entries for the same trip i (different EVs n) is forbidden; the integer encoding makes that constraint physically impossible because qi takes a single value per trip. Concretely, the equality penalty E1=Σ|Rzn,iLzn,t| present in the qubit case is replaced by Σ|δqi,nLzn,t| in the qudit case — the latter is sparser and triggers only on the single n that qi selects.

§IV.A's bi-directional results (Fig. 4) are the headline plot. Across QAOA depths L=1..10 the qudit encoding produces lower ΔEmean with substantially tighter inter-instance variance, and a higher success probability. Most strikingly, the qubit encoding's performance degrades with circuit depth, while the qudit encoding stays flat. The authors trace this to the 200-iteration Powell cap (Fig. 6): for the qubit Hilbert space (46656-dim), 200 iterations isn't enough — both encodings converge to similar limits when run for 1000 iterations, but at the 200 cap the qubit case is still mid-descent. So the "encoding advantage" here is partly an interaction with a fixed compute budget — exactly the realistic regime Y3 worried about for QAOA-DGMVP under shot/iteration limits.

§IV.B's uni-directional sweep over R=2,3,4 (Fig. 8 for R=3) tightens the case: the qudit encoding has more variational parameters per layer (3L vs 2L, since (Lz)2 is non-trivial only for qudits with d>2), so it is structurally disadvantaged in a budgeted optimization. It still wins on success probability across all R, suggesting the dimension reduction outweighs the parameter-count penalty. As R grows the problem becomes more constrained — feasible-state fractions drop from ~20% to ~0.1% (Fig. 1) — and the qudit encoding's advantage grows accordingly: shrinking the Hilbert space matters more when feasibility is rare.

The cost-landscape visualization (Figs. 2–3) is qualitative but informative. Both landscapes are oscillatory and shot-noisy at M=256, but the qubit landscape sits at roughly 3× higher energy scale because its infeasible-configuration mass — penalized heavily — is exponentially larger. This bears directly on QAOA's signal-to-noise ratio: when most of the wavefunction sits in penalty-dominated regions, the cost gradient is dominated by infeasibility rather than by the actual objective, and Powell wastes iterations climbing out of the penalty plateau.

The runtime plot (Fig. 7) shows the qudit advantage in raw classical-simulation time, ~order-of-magnitude faster. The authors caveat that this doesn't directly translate to hardware gate counts — that would require explicit circuit compilation under realistic constraints (cited Bottarelli 2024 for constraint handling) — but it does serve as a representational-complexity proxy. The §V conclusion explicitly flags that scaling and hardware-realistic implementations are the natural next step.

The paper does not test against vanilla QAOA-with-XY-mixer, hard-constraint mixers (Hadfield-style), or CVaR-QAOA — all of which Y2 used or contributed to. The omission is acceptable for an isolated encoding study, but it leaves open the question of whether the qudit encoding still wins when combined with stronger constraint-preserving mixers, and conversely whether quasi-binary encoding (Y2's intermediate point between binary and qudit) would land somewhere in between.

Figures

Figure 1
Figure 1. Statistics of all the benchmark problem instances as a function of the number of trips for the two encodings — left panel from the paper's Fig. 1: relative number of feasible solutions. The problems considered are highly constrained with feasible fractions of ~0.1%–20%, decreasing with R.
Figure 2
Figure 2. Cost function landscape for an L=1 layer QAOA as function of variational parameters β and γ for a bi-directional benchmark instance, qubit trip encoding (with β2=0). Multi-modal with overall energy scale ~3× the qudit case due to higher infeasible mass.
Figure 3
Figure 3. Same instance and slice as Figure 2 but for the qudit trip encoding. Multi-modal with lower energy scale; the M=256-shot noise is visible.
Figure 4
Figure 4. Mean energy gap ΔEmean averaged over 10 instances vs. QAOA depth L for the bi-directional (d=3, NEV=3, T=2, R=2) problem. Qudit encoding produces slightly better results with lower variance and is robust to L; qubit encoding degrades with L under the 200-iteration Powell cap.
Figure 5
Figure 5. Success probability r vs. circuit depth L for the bi-directional problem (10 instances, 10 runs each). Qudit encoding consistently above qubit; both show that increasing L doesn't help under the iteration cap.
Figure 6
Figure 6. Powell optimization progress (mean energy gap vs. iteration) at fixed L=3, with 1000 iterations. Both encodings converge to similar low-energy values eventually, but the qudit encoding reaches them substantially faster — explaining why the 200-iteration cap penalizes the qubit encoding disproportionately.
Figure 7
Figure 7. Mean simulation runtime (minutes) for one Powell optimization run with 200 iterations and M=256 shots vs. depth L, bi-directional d=3 problem. Linear in L, with qudit ~order-of-magnitude faster owing to the smaller state vector.
Figure 8
Figure 8. Success probability r vs. L for the uni-directional (d=2, NEV=2, T=3) problem at R=3 trip reservations. Even with the qudit encoding's higher parameter count (3L vs. 2L), it still beats the pure-qubit case across depths.

Citations to Yuan's papers

No direct citation to any of Y1–Y6 found in bibliography. The only Yuan listed is Xiao Yuan (different author) in the Cerezo et al. 2021 VQA review.

Overlap with Y1–Y6

Recommended action for Yuan