Genetic Algorithm for VQC ansatz search.
Project description
GA for VQC Ansatz Search
This is a module to support Variational Quantum Circuits by optimizing the ansatz. The ansatz optimization is performed using a Genetic Algorithm, which can be sped up with GPUs.
Installation
Run the following to install:
$ pip install ga-vqc
Contributors
This module was developed through the Caltech SURF program. Special thanks to my mentor at Caltech.
- Jean-Roch (California Institute of Technology, Pasadena, CA 91125, USA)
Usage
import ga_vqc as gav
# Config (hyperparameters) for GA, see full list in example
config = {
'backend': 'simple',
'vqc': main,
'vqc_config': {},
}
# Create the GA with the given hyperparameters
ga = gav.setup(config)
# Evolve the GA and search for the best ansatz
ga.evolve()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ga_vqc-0.0.54.tar.gz.
File metadata
- Download URL: ga_vqc-0.0.54.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1967e2fa5de3e97fc556f6b0700991a0163b0d1cbe8811b6e2dc0c249bf7a9a1
|
|
| MD5 |
9250acc03dbf5efa582d300050134529
|
|
| BLAKE2b-256 |
91655160bffaa0732bcdee7e9171d01d2d8b7e3322d626c47365e8fb8a21afa9
|
File details
Details for the file ga_vqc-0.0.54-py3-none-any.whl.
File metadata
- Download URL: ga_vqc-0.0.54-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29fcbaa42b45d45ddacf1d75d12f37cf63c0a865879b64a18764d274c70f57eb
|
|
| MD5 |
b6de0ac2f3d29225d2caa00562671885
|
|
| BLAKE2b-256 |
c2259f2189403735325f783a8d96386e2729d892b7f3cbe91508ed91b23803d6
|