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 12 Nov. 2024.
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
Get rewarded with contribution points by helping add
Reviews / comments / questions /suggestions ↴↴↴

Today's Hot Picks in Authors and Packages

visualize  
Graph Probability Distributions with User Supplied Parameters and Statistics
Graphs the pdf or pmf and highlights what area or probability is present in user defined locations. ...
Download / Learn more Package Citations See dependency  
mmrm  
Mixed Models for Repeated Measures
Mixed models for repeated measures (MMRM) are a popular choice for analyzing longitudinal continuou ...
Download / Learn more Package Citations See dependency  
Relectoral  
Electoral Analysis
Functions to obtain an important number of electoral indicators described in the package, which can ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
ggpolypath  
Polygons with Holes for the Grammar of Graphics
Tools for working with polygons with holes in 'ggplot2', with a new 'geom' for drawing a 'polypath' ...
Download / Learn more Package Citations See dependency  
emIRT  
EM Algorithms for Estimating Item Response Theory Models
Various Expectation-Maximization (EM) algorithms are implemented for item response theory (IRT) mod ...
Download / Learn more Package Citations See dependency  

23,171

R Packages

199,134

Dependencies

62,827

Author Associations

23,089

Publication Badges

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