The dietary recommendations for individuals with diabetes focus on maintaining a balanced nutritional intake to manage blood sugar levels. This study suggests a nutritional strategy to improve glycemic control based on an analysis of a dietary optimization problem. The goal is to minimize the overall glycemic loads (GLs) of specific foods. Two variations of the particle swarm optimization (PSO) method, as well as random quantum process optimization (GQPSO), are introduced. The findings demonstrate that the quantum and random methods are more effective than the traditional techniques in reducing the glycemic loads of diets and addressing nutritional deficiencies while also aligning nutrient intake with the recommended levels. The resolution of this diet optimization model, executed multiple times with adjustments to the parameters of both methods, enables dynamic exploration and provides a wide range of diverse and effective food choices.