QGA
1.0Quantum Genetic Algorithm
Overview
Function that implements the Quantum Genetic Algorithm, first proposed by Han and Kim in 2000. This is an R implementation of the 'python' application developed by Lahoz-Beltra (https://github.com/ResearchCodesHub/QuantumGeneticAlgorithms). Each optimization problem is represented as a maximization one, where each solution is a sequence of (qu)bits. Following the quantum paradigm, these qubits are in a superposition state: when measuring them, they collapse in a 0 or 1 state. After measurement, the fitness of the solution is calculated as in usual genetic algorithms. The evolution at each iteration is oriented by the application of two quantum gates to the amplitudes of the qubits: (1) a rotation gate (always); (2) a Pauli-X gate (optionally). The rotation is based on the theta angle values: higher values allow a quicker evolution, and lower values avoid local maxima. The Pauli-X gate is equivalent to the classical mutation operator and determines the swap between alfa and beta amplitudes of a given qubit. The package has been developed in such a way as to permit a complete separation between the engine, and the particular problem subject to combinatorial optimization.
Install
Health
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 0%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Repository practices
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/barcaroli/qga on 2026-07-31.
Dependencies
Nothing depends on this yet.
Code & Tests
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.0Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2024-05-31
- Total releases
- 1 / 2 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 520 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet