Skip to main content

quark - QUantum Application Reformulation Kernel

pipeline status

This is a software package to support the mapping of combinatorial optimization problems to quantum computing interfaces via QUBO and Ising problems.

Documentation

The full documentation can be found here.

Description of the Basic Ideas

The combinatorial optimization problem is rewritten as a single (quadratic unconstrained binary) objective function. The usual way to build it up is to use the following structure: In the Instance we describe the problem defining parameters. From the instance, we construct the ObjectiveTerms, containing the different contributions to the objective function, in particular the ones derived from problem constraints. The objective terms can be implemented directly or derived from a ConstrainedObjective, which contains the objective function and multiple constraints, implemented as ConstraintBinary. The objective terms can now be used to create the Objective by summing up the single terms weighted with a certain so-called penalty weight.

All objective objects contain Polynomials representing the functions. There are special polynomials, PolyBinary and PolyIsing, which take advantage of the restriction to either binary (0 or 1) or spin (-1 or 1) variables.

The ScipModel is an interface to the classical MILP solver SCIP, which can solve a ConstrainedObjective or a (small enough) Objective for comparison. In Solution, we store not only the optimal variable assignment but also further information, like runtime etc., which are obtained during the solving process.

Furthermore, we have the HardwareAdjacency and the Embedding, which are useful when dealing with actual hardware.

All mentioned objects also provide methods to store and load their information in and from hdf5 files.

License

This project is Apache-2.0 licensed.

Copyright © 2026 German Aerospace Center (DLR) - Institute of Software Technology (SC).

Please find the individual contributors here and information for citing this package here.

Release files for dlr-sc-quark 1.3.2

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

Source distribution (sdist)

Source distribution for dlr-sc-quark 1.3.2
File Size Uploaded
dlr_sc_quark-1.3.2.tar.gz 92.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dlr-sc-quark 1.3.2
File Interpreter ABI Platform
dlr_sc_quark-1.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 228.4 kB

Release files / dlr_sc_quark-1.3.2.tar.gz

Download URL dlr_sc_quark-1.3.2.tar.gz
Size 92.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b5d04e566df697db4223f1b40301c3eef1cf6ebd09989e2127dad2d22f8db459
BLAKE2b-256 checksum
How to use checksums
054acc9bb211b0b6fb008eb0e8f0b90bfca19d9a6f13bee02c52d4eb0fbf4df3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / dlr_sc_quark-1.3.2-py3-none-any.whl

Download URL dlr_sc_quark-1.3.2-py3-none-any.whl
Size 136.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69d2bf99fc8b66d07f50cc3319581d020d46bf6b667fd8d82442ec17f89c156a
BLAKE2b-256 checksum
How to use checksums
52892220308fa5585ed9293e54be29eba4efb2538904c06427f07202116d3139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

1.3.2 This release

2 release files

1.3.1

2 release files

1.2.1

2 release files

1.2

2 release files

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