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
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
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

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  
MPCI  
Multivariate Process Capability Indices (MPCI)
It performs the followings Multivariate Process Capability Indices: Shahriari et al. (1995) Multivar ...
Download / Learn more Package Citations See dependency  
PCL  
Proximal Causal Learning
We fit causal models using proxies. We implement two stage proximal least squares estimator. E.J. Tc ...
Download / Learn more Package Citations See dependency  
largeList  
Serialization Interface for Large List Objects
Functions to write or append a R list to a file, as well as read, remove, modify elements from it wi ...
Download / Learn more Package Citations See dependency  
DelayedEffect.Design  
Sample Size and Power Calculations using the APPLE, SEPPLE, APPLE+ and SEPPLE+ Methods
Provides sample size and power calculations when the treatment time-lag effect is present and the la ...
Download / Learn more Package Citations See dependency  
interplex  
Coercion Methods for Simplicial Complex Data Structures
Computational topology, which enables topological data analysis (TDA), makes pervasive use of abstr ...
Download / Learn more Package Citations See dependency  

22,431

R Packages

191,269

Dependencies

56,139

Author Associations

22,432

Publication Badges

© Copyright 2022 - present. All right reserved, rpkg.net. Contact Us / Suggestions / Concerns