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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ga_vqc-0.0.48.tar.gz
  • Upload date:
  • Size: 9.8 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.48.tar.gz
Algorithm Hash digest
SHA256 dc7ca22fab0e06c45ccbc1039eaba8dd467a9471124bad7ff796f3f1f344d12a
MD5 c9abe8a8c055045fbe244b8ea144d90f
BLAKE2b-256 c8ddf7a83c95b01f4d03bbb11ed322127b060ee0c328b75b988a8a89eb34c73f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ga_vqc-0.0.48-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.48-py3-none-any.whl
Algorithm Hash digest
SHA256 ae844d02507aa5a71b9382bab0cff18cc95d5f9d6b6c3fc06841c9f4ddfb47cc
MD5 fea8582639c43a3912442507796a5669
BLAKE2b-256 408aefa2cf50ab256b3400e68e2aca5932f5d0a74801a820a1975652413bab01

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