Capillary condensation for quantum fluids