Mirror manifolds to toric Calabi-Yau threefolds are encoded in algebraic curves. The quantization of these curves leads naturally to quantum-mechanical operators on the real line. We show that, for a large number of local del Pezzo Calabi-Yau threefolds, these operators are of trace class. In some simple geometries, like local P2, we calculate the integral kernel of the corresponding operators in terms of Faddeev's quantum dilogarithm. Their spectral traces are expressed in terms of multi-dimensional integrals, similar to the state-integrals appearing in three-manifold topology, and we show that they can be evaluated explicitly in some cases. Our results provide further verifications of a recent conjecture which gives an explicit expression for the Fredholm determinant of these operators, in terms of enumerative invariants of the underlying Calabi-Yau threefolds.