  In 2015, Lovejoy and Osburn discovered twelve $q$-hypergeometric series and
proved that their Fourier coefficients can be understood as counting functions
of ideals in certain quadratic fields. In this paper, we study their modular
and quantum modular properties and show that they yield three vector-valued
quantum modular forms on the group $\Gamma_0 (2)$.
