Skip to main content

"Orquestra's library with optimization routines and interfaces"

Project description

orquestra-opt

What is it?

orquestra-opt is a library with core functionalities for optimizing cost functions developed by Zapata for our Orquestra platform.

orquestra-opt provides:

  • interfaces for implementing ansatzes including qaoa and qcbm.
  • optimizers and cost functions tailored to opt
  • misc functions such as grouping, qaoa interpolation, and estimators

Installation

Even though it's intended to be used with Orquestra, orquestra-opt can be also used as a standalone Python module. For a basic install, you just need to run pip install -e . from the main directory. If you need to make use of optimizers from qiskit or solve qubo problems, then you should instead run pip install -e '.[qiskit]' or pip install -e '.[qubo]' respectively. If you need both, you should run pip install -e '.[all]'

Usage

Here's an example of how to use methods from orquestra-opt to solve a simple maximum cut problem.

from orquestra.opt.problems import MaxCut
import networkx as nx

def orquestra_opt_example_function()
   graph = nx.complete_graph(4)
   value, solutions = MaxCut().solve_by_exhaustive_search(graph)
   return solutions

Development and Contribution

You can find the development guidelines in the orquestra-quantum repository.

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

orquestra-opt-0.2.0.tar.gz (57.2 kB view details)

Uploaded Source

File details

Details for the file orquestra-opt-0.2.0.tar.gz.

File metadata

  • Download URL: orquestra-opt-0.2.0.tar.gz
  • Upload date:
  • Size: 57.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.3

File hashes

Hashes for orquestra-opt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c26a8a49a4a5f0021aa6802aac506f1923e9dc7928ef994a4be1486d5dc37511
MD5 ad0aca2ee9fb935bb8b1b633375cd9a9
BLAKE2b-256 3e52c869e24b556adcdbb477258feb445bca1defabf55e6a944bc833f7f2ce3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page