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.3.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.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ga_vqc-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 1ec146658317f841de0218231f57ad077a85ed7bc7a80ddc501fa6da5b8f3a44
MD5 e838c689df8f76c90fd6d126aa615d4e
BLAKE2b-256 0e2a4636cf8e5e13683136241e802413eed1bc8fb11729e0e07ce7385180955a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ga_vqc-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e4a1b690de75cef080d07cdfc17f2ccc1333d06666613a485178c94fac2f32dc
MD5 858871fb7d9e0202ecc853d6bc275d76
BLAKE2b-256 5e2a90220c9ab259c9de8bb79de3bb06438e84dd4af8c6498fc1f16eee4b345d

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