Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ga_vqc-0.0.50.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ga_vqc-0.0.50-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file ga_vqc-0.0.50.tar.gz.

File metadata

  • Download URL: ga_vqc-0.0.50.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for ga_vqc-0.0.50.tar.gz
Algorithm Hash digest
SHA256 4e54027c368d02b0223143d8c2784fe9ad381b46058864c760f17ab8b07d99b3
MD5 fac51ce5871ca5774e32b2b23cad8397
BLAKE2b-256 05bbcc4b77ecca558490c5ca8193439d3223c2e8fb166c2392be68f9a56fba68

See more details on using hashes here.

File details

Details for the file ga_vqc-0.0.50-py3-none-any.whl.

File metadata

  • Download URL: ga_vqc-0.0.50-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for ga_vqc-0.0.50-py3-none-any.whl
Algorithm Hash digest
SHA256 9f94aaea767847d19f490cf103db067fc66c3dab3fc32d568a3644bb3990e97c
MD5 ae00513b617fa35daf71c15edba29624
BLAKE2b-256 636d2051d3e1b250910cda4c3e9a6c29338c186d5464bcbed695292ba698e12d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page