Given a log Calabi--Yau surface $(Y,D)$, Bousseau has constructed a quantization of the mirror algebra of this pair. We give a formula for structure constants of this quantization in terms of higher genus descendant logarithmic Gromov--Witten invariants of $(Y,D)$. Our result generalises the weak Frobenius structure conjecture for surfaces to the $q$-refined setting, and is proved by relating these invariants to counts of quantum broken lines in the associated quantum scattering diagram.
Journal version