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

# 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.42.tar.gz (9.3 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.42-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ga_vqc-0.0.42.tar.gz
  • Upload date:
  • Size: 9.3 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.42.tar.gz
Algorithm Hash digest
SHA256 60c193890a3759db9dd9ebcb05b980de193c9c7e0dd0e986c5e1c77f7a28a7df
MD5 19eb4cecd06965882bfd2a1e13f4426f
BLAKE2b-256 36ae82c2259fda7400b463b6df09a2f036836814a4fbbdce984f978d8f97e26c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ga_vqc-0.0.42-py3-none-any.whl
  • Upload date:
  • Size: 9.6 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.42-py3-none-any.whl
Algorithm Hash digest
SHA256 ec8a4dc5c2527be92b616f71529dc5cc49723227ef40c90e86166df56dd7e3ed
MD5 192df6048ceca3d8d618b218d05668ef
BLAKE2b-256 c3a22b08cfa2778bbc16d6b0921c72e78f1c29c7625bc159670a145d8de7e3cc

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