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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ga_vqc-0.0.40.tar.gz
  • Upload date:
  • Size: 9.3 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.40.tar.gz
Algorithm Hash digest
SHA256 944a04f948dee133ee1c8d9d37c6277d5fce19b6096a24a324dc86cd3d826334
MD5 5f4bc83a0882b4c16e42c5a87b47faa5
BLAKE2b-256 c39f7ca78cc45f42666a0447fa4c28710b33b2fe0d0fc21cf80526583b39c1db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ga_vqc-0.0.40-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.40-py3-none-any.whl
Algorithm Hash digest
SHA256 b7e37e2efc83c0e0d7757829f9fb98686bc21fc552729422ad1d515dd7699098
MD5 f96652203303f523f8c520cd1654e31a
BLAKE2b-256 a287f0c098a539a828528ae4d1c3821bed6edac38a9c80bcb23c4c519784950d

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