Skip to main content

QpiAI-Opt-API is a an interface python package to access QpiAI-Opt solvers on cloud

Project description

qpiai-opt-api

qpiai-opt-api provides a python package to interface with the qpiai-opt solver on the cloud to solve NP-Hard Combinatorial problems.

QpiAI-Opt is a high-level optimization library to solve NP-Hard (combinatorial) problems. We provide access to our solvers through QpiAI-Opt API to access four base class problems (that have real-world applications):

  1. Maximum Cut

  2. Minimum Vertex Cover

  3. Maximum Independent Set

  4. Number Partition

QpiAI-Opt API also provides a QUBO design engine to express a general QUBO problem and solve it with our solver.

Installation steps

  1. Install the latest version of the project from: https://pypi.org/project/qpiai-opt-api/1.0.1/ You can use the following command to install.

    pip install qpiai-opt-api==1.0.1

  2. Install the dependencies from requirements.txt

    pip install networkx

    pip install requests

  3. You are ready to access the solvers using the url and access token. Refer to the below tutorial to get started.

  4. In order to use the wrappers for dwave and qiskit support, install the following dependencies. pip install qiskit

    pip install qiskit[optimization]

    pip install 'qiskit-optimization[cplex]

    pip install dimod

    pip install dwave-neal

What's new?

We have added dwave and qiskit wrappers to solve the qubo problem on both the platforms, besides qpiai_opt's solver. Refer to documentaion for more info.

You can also refer to the below turorials to get started with qpiai_opt and its wrappers to solve on supported platforms.

Tutorials

Refer to QpiAI-API tutorials

MIT License

Copyright (c) 2022 Sagar B Dollin, QpiAI India Private Limited

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

qpiai_opt_api-1.0.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qpiai_opt_api-1.0.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file qpiai_opt_api-1.0.2.tar.gz.

File metadata

  • Download URL: qpiai_opt_api-1.0.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for qpiai_opt_api-1.0.2.tar.gz
Algorithm Hash digest
SHA256 56c3dd68c0c41d7cc46538d111eac7d9beb6e8cc67e1385fe691e4f769bd2e05
MD5 f810626ab3e9989a3141e4a8b22c9a3d
BLAKE2b-256 158ae46524ca417354ac9ed69112c911b9e402f925d7a433dae800eb9c09a25c

See more details on using hashes here.

File details

Details for the file qpiai_opt_api-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: qpiai_opt_api-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for qpiai_opt_api-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 310c20943583200a0a2fe9776755e466ae3ba027c1accdbd1787c0208da38837
MD5 d5f5e2a99b7f66f630a5a07b0206efdb
BLAKE2b-256 d741cfbaa357c12a0148f8c07c272057d86b1fbd00448596b5b82076f090bf52

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