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.49.tar.gz (11.5 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.49-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ga_vqc-0.0.49.tar.gz
  • Upload date:
  • Size: 11.5 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.49.tar.gz
Algorithm Hash digest
SHA256 7f0a617a50c6c03024500d3e6093be25ec54298aaadea48a2907f3607e8b4264
MD5 8fdfd565e7132e80751490a85a06f868
BLAKE2b-256 dd36fd1607f9ab456dbc32c458f6e0835eb33f490489cc6713442827ea260ec1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ga_vqc-0.0.49-py3-none-any.whl
  • Upload date:
  • Size: 12.8 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.49-py3-none-any.whl
Algorithm Hash digest
SHA256 5d30f16e10d38892df41b24ad013487bf1ebb5a75ca615b88e302c1c7a76f7e0
MD5 7e64a1e0a2ffd5d6547de7cafa09905b
BLAKE2b-256 9acf6cd28d560547f17162314530a22638ecc15ee0f119c8ea14af7020f8bccc

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