The distance-minimizing data-driven computational mechanics has great potential in engineering applications by eliminating material modeling error and uncertainty. In this computational framework, the solution-seeking procedure relies on minimizing the distance between the constitutive database and the conservation law. However, the distance calculation is time-consuming and often takes up most of the computational time in the case of a huge database. In this paper, we show how to use quantum co...