Skip to main content

scikit-quant is an aggregator package to improve interoperability between quantum computing software packages. Our first focus in on classical optimizers, making the state-of-the art from the Applied Math community available in Python for use in quantum computing.

Full documentation: https://scikit-quant.readthedocs.io/

Website: http://scikit-quant.org

Installation

pip install sckit-quant

Usage

Basic example (component interfaces for standard quantum programming frameworks and for SciPy are available as well):

 import numpy as np
 from skquant.opt import minimize

 # some interesting objective function to minimize
 def objective_function(x):
     fv = np.inner(x, x)
     fv *= 1 + 0.1*np.sin(10*(x[0]+x[1]))
     return np.random.normal(fv, 0.01)

# create a numpy array of bounds, one (low, high) for each parameter
bounds = np.array([[-1, 1], [-1, 1]], dtype=float)

# budget (number of calls, assuming 1 count per call)
budget = 40

# initial values for all parameters
x0 = np.array([0.5, 0.5])

# method can be ImFil, SnobFit, Orbit, NOMAD, or Bobyqa
result, history = \
    minimize(objective_function, x0, bounds, budget, method='imfil')

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scikit-quant-0.8.1.tar.gz (20.3 kB view details)

Uploaded Source

File details

Details for the file scikit-quant-0.8.1.tar.gz.

File metadata

  • Download URL: scikit-quant-0.8.1.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for scikit-quant-0.8.1.tar.gz
Algorithm Hash digest
SHA256 a0b8c905e41c954804d63fe7d63e67ad8535e45a78928c1d9158cf34c030ce6f
MD5 f65b6afa61025d6b3c1a9efe94e11233
BLAKE2b-256 2bbc14ebefed0b2d501bb3799e262ae27622cb97fec42e28e84f284da1cdcf90

See more details on using hashes here.

Release history Release notifications | RSS feed

0.8.2

1 file

This release

0.8.1 This release

1 file

0.8.0

1 file

0.7.0

1 file

0.6.0

1 file

0.5.0

1 file

0.4.0

1 file

0.3.0

1 file

0.2.0

1 file

0.1.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page