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.51.tar.gz (12.0 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.51-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ga_vqc-0.0.51.tar.gz
  • Upload date:
  • Size: 12.0 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.51.tar.gz
Algorithm Hash digest
SHA256 9e7eb6bcc1daf6967d971e648de31754dbf67de5c00bac0954515d90c5eedd6e
MD5 df1d1722ca18c297d6c745868d9915db
BLAKE2b-256 53b9ff68542cb15b2649f54f25253aeb6aadb17e44dc7e34ec8eaf7dd65d7af2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ga_vqc-0.0.51-py3-none-any.whl
  • Upload date:
  • Size: 13.3 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.51-py3-none-any.whl
Algorithm Hash digest
SHA256 2601fbf11a23d79773d788a4940e610ac1b24d6a619f4aa4b6f3bcee5f7bf43a
MD5 5f61c3a244738269e61ac9a38b7d6421
BLAKE2b-256 ebb87b6d6bfc6b1a2ff530ebeb73e645cd99fa3fd5af7fe6fec56754fe746fb3

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