Sage code for computing quadratic extensions of number fields with trivial class group