Other packages > Find by keyword >

QGA  

Quantum Genetic Algorithm
View on CRAN: Click here


Download and install QGA package within the R console
Install from CRAN:
install.packages("QGA")

Install from Github:
library("remotes")
install_github("cran/QGA")

Install by package version:
library("remotes")
install_version("QGA", "1.0")



Attach the package and use:
library("QGA")
Maintained by
Giulio Barcaroli
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2024-05-31
Latest Update: 2024-05-31
Description:
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.
How to cite:
Giulio Barcaroli (2024). QGA: Quantum Genetic Algorithm. R package version 1.0, https://cran.r-project.org/web/packages/QGA. Accessed 28 Jul. 2026.
Previous versions and publish date:
No previous versions
Other packages that cited QGA R package
View QGA citation profile
Other R packages that QGA depends, imports, suggests or enhances
Complete documentation for QGA
Functions, R codes and Examples using the QGA R package
Full QGA package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

daqapo  
Data Quality Assessment for Process-Oriented Data
Provides a variety of methods to identify data quality issues in process-oriented data, which are us ...
Download / Learn more Package Citations See dependency  
ExplodeLayout  
Calculate Exploded Coordinates Based on Original Node Coordinates and Node Clustering Membership
Current layout algorithms such as Kamada Kawai do not take into consideration disjoint clusters in a ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
openintro  
Datasets and Supplemental Functions from 'OpenIntro' Textbooks and Labs
Supplemental functions and data for 'OpenIntro' resources, which includes open-source textbooks and ...
Download / Learn more Package Citations See dependency  
textmineR  
Functions for Text Mining and Topic Modeling
An aid for text mining in R, with a syntax that should be familiar to experienced R users. Provides ...
Download / Learn more Package Citations See dependency  
NPBayesImputeCat  
Non-Parametric Bayesian Multiple Imputation for Categorical Data
These routines create multiple imputations of missing at random categorical data, and create multipl ...
Download / Learn more Package Citations See dependency  

27,987

R Packages

239,283

Dependencies

74,234

Author Associations

27,988

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA