Temperature dependence of a planar shock wave in helium and neon is studied by the direct simulation Monte Carlo method based on ab initio potentials. A quantum approach to interatomic interactions used here allows us to carry out calculations over a wide temperature range beginning from 1 K up to 5000 K. Moreover, for high temperatures, the quantum approach requires less computational effort than the classical one. Three gaseous species are considered: helium-3, helium-4, and neon. The problem is solved for three values of the Mach number Ma = 2, 5, 10. No influence of the quantum effects has been detected within the numerical error for the temperature of 300 K and higher. For temperatures lower than 300 K, the influence of the quantum effects in helium exceeds the numerical error and reaches 230%. In the case of neon, the quantum effect does not exceed 2% in the whole temperature range considered in the present work. A comparative analysis of flow-fields in shock waves at various temperatures points out a strong influence of the temperature ahead of a shock wave on its structure. The numerical data provided in the supplementary material can be used to model any flow of helium and neon in a wide range of temperatures.