Skip to main content

Questions tagged [pyqubo]

For questions about PyQUBO: Python DSL for constructing QUBOs from mathematical expressions. https://pyqubo.readthedocs.io/

Filter by
Sorted by
Tagged with
0 votes
0 answers
252 views

Extracting a QUBO matrix from pyqubo

I am benchmarking different QUBO solvers for a very simple instance of the knapsack problem. Some of these solvers require the matrix, Q, and offset, b, from the equation: $$ \begin{equation} x^{\...
Waqas Parvaiz's user avatar
1 vote
0 answers
125 views

How to add constraints to a BQM?

BQM is unconstrained by definition. I need to submit a knapsack problem with two constraints (equality constraints + inequality constraints) to a quantum annealer (DWaveSampler). How would you set the ...
Roland's user avatar
  • 151
9 votes
1 answer
598 views

Inequality constraints on D-Wave (using PyQUBO)

Inequalities cannot be directly converted into a QUBO form. By inequality, I mean something like this: 0⩽ Expression ⩽ N. We can introduce a slack variable and convert it to an equality problem: ⟹ ...
amp's user avatar
  • 91
5 votes
0 answers
94 views

How to calculate the $r^{\text{th}}$ digit of $\sum ^{j−1}_{p=i}d^p_{\pm k}$ using PyQUBO?

I am going to implement "turn circuit encoding" method of Coarse-grained lattice protein folding on a quantum annealer(Babej, Ing & Fingerhuth; 2018) using PyQUBO to run on the DWave qbsolv ...
Hasitha Perera's user avatar