Skip to main content

Our hybrid solver for QUBO problems merges classical and quantum computing, efficiently solving complex optimization tasks. It offers fast, accurate results for applications in logistics, finance, and more.

Project description

QDeep Hybrid Solver - Quadratic Unconstrained Binary Optimization Solver

QDeep Hybrid Solver is a Python library specifically developed for efficiently solving Quadratic Unconstrained Binary Optimization (QUBO) problems through advanced hybrid quantum-classical computing methods. It provides a user-friendly interface to submit QUBO matrices and retrieve structured, optimized solutions.

Mathematical Formulation

A QUBO problem is mathematically expressed as:

1742437383961

where:

  • (x) is a binary vector.
  • (Q) is a symmetric matrix representing the problem's coefficients.

Features

  • Type-hinted implementation using Python's TypedDict
  • Comprehensive input validation for matrices
  • Secure authentication token management
  • Structured and detailed response handling

Installation

Install the required dependencies along with the solver:

pip install numpy requests qdeepsdk

Dependencies

  • numpy
  • requests
  • qdeepsdk

Usage

import numpy as np
from qdeepsdk import QDeepHybridSolver

# Initialize solver
solver = QDeepHybridSolver()

# Set authentication token
solver.token = "your-auth-token-here"

# Create a QUBO matrix
matrix = np.array([
    [-1,  2,  2],
    [ 0, -1,  2],
    [ 0,  0, -1]
])

# Solve the QUBO problem
try:
    results = solver.solve(matrix)
  
    # Access results
    print("Hybrid Solver Results:", results)
  
except ValueError as e:
    print(f"Error: {e}")
except requests.RequestException as e:
    print(f"API Error: {e}")

API Response Structure

The solver returns a structured dictionary with the following format:

{
    "configuration": [int],  # Solution vector
    "energy": float,         # Energy of the solution
    "time": float            # Computation time in seconds
}

Requirements

  • Python 3.7+
  • NumPy
  • Requests

The library includes comprehensive error handling for:

  • Invalid or missing authentication tokens
  • Non-square matrices
  • Non-2D matrices
  • Non-numpy array inputs
  • API connection issues

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

qdeepsdk-0.3.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

qdeepsdk-0.3.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file qdeepsdk-0.3.0.tar.gz.

File metadata

  • Download URL: qdeepsdk-0.3.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0rc1

File hashes

Hashes for qdeepsdk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a30d852f14ef6c069cbef60112611e18568d9ff4850b3c9389b5e00072c9944a
MD5 400fb6ebf56605114738b20a4a99a5aa
BLAKE2b-256 2c19f9c3431c1a94b5478ff530b4527b4c5ad4bbf32e9faf6bdacf80778c0426

See more details on using hashes here.

File details

Details for the file qdeepsdk-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: qdeepsdk-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0rc1

File hashes

Hashes for qdeepsdk-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a410e82dcc8392a4615fc61b0b799b29713deb577d20258c3cd0b7335e655c6c
MD5 1053170724e6402e48e27044565656e3
BLAKE2b-256 aeaaca3707dbe0a8b300aa9e6dc6fd65b0b2a0bdc7b2f61c6c728f9b7727d8a4

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