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.47.tar.gz (9.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.47-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ga_vqc-0.0.47.tar.gz
  • Upload date:
  • Size: 9.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.47.tar.gz
Algorithm Hash digest
SHA256 1948195672ee2a2f0e34896a6de38317938a8c31c1184c660f2feb15bafe0aa4
MD5 7e29ef5b61d7e79293d45bb51d2dfe3d
BLAKE2b-256 ff64f34e3bb521c8fa6c68ca15c2893819809e4af5a42d53b907f447640c6bd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ga_vqc-0.0.47-py3-none-any.whl
  • Upload date:
  • Size: 9.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.47-py3-none-any.whl
Algorithm Hash digest
SHA256 8292681050d52cd3d8da0a4d265ecd653be5b00fcea20f99508940a980abf2f1
MD5 8c49a7f615995b1df2d53d5f76a2b153
BLAKE2b-256 f615b8b972d24932c7de79ede4b4149c8f1a62272be571787ceb5966986a3b6e

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