Questions tagged [pyqubo]

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

3 questions
9
votes
1 answer

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: ⟹ Expression + s = N where: s ∈ Z, s ∈ [0,N] Since the…
amp
  • 91
  • 1
5
votes
0 answers

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 environment. In this method I have to implement equation…
1
vote
0 answers

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 problem as a BQM to be sampled fully quantum (no…
Roland
  • 151
  • 4