Skip to main content

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.

Metadata

Release files for orquestra-opt 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orquestra-opt 0.10.0
File Size Uploaded Provenance Actions
orquestra-opt-0.10.0.tar.gz 72.2 kB Without provenance Details for orquestra-opt-0.10.0.tar.gz

Release files / orquestra-opt-0.10.0.tar.gz

Download URL orquestra-opt-0.10.0.tar.gz
Size 72.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f70bb13b1147336ae587ff4eba3b58264812125f9bb714cb48772bae9da3e92d
BLAKE2b-256 checksum
How to use checksums
dac33feebf512c0c1c87df10d038ae7086c22128bf4a309a7cb18f9f976ccf0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for orquestra-opt 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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