A Gate-Based Quantum Genetic Algorithm for Real-Valued Global Optimization