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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ga_vqc-0.0.37.tar.gz
  • Upload date:
  • Size: 9.2 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.37.tar.gz
Algorithm Hash digest
SHA256 54837d8f265ac1ccbca3ff3da401d813a9b2569b28c2c3f5989d9ef711d06349
MD5 68d1602a0772cae419680b2f055d30bb
BLAKE2b-256 8872588c3194682be5b33aa643fc054e977607664e37aeb0a34065a0d50fa10b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ga_vqc-0.0.37-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.37-py3-none-any.whl
Algorithm Hash digest
SHA256 f04491aa433a5f451380aa8565bdc2fabec8ccac687dc5d003d4a8652224efaf
MD5 9db3bd0a466e9c252cde484383b407e1
BLAKE2b-256 81bf5057c50e9fcc5228c9b9873121e855a7e879df5cbc8a6e1454ce41fc852f

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