Git Product home page Git Product logo

hpqc-labs / book_about_quadratization Goto Github PK

View Code? Open in Web Editor NEW
17.0 8.0 18.0 39.94 MB

Open collaborative book on quadratization in discrete optimization and quantum mechanics.

License: MIT License

TeX 68.05% Mathematica 2.47% MATLAB 27.50% Jupyter Notebook 1.98%
computer d-wave machine-learning operations-research quadratization quantum-annealing quantum-computing discrete-mathematics discrete-optimization quantum-chemistry

book_about_quadratization's People

Contributors

agu1729 avatar andreas-sot avatar arpitarunkumaar avatar cbaetz avatar ehuan2 avatar erikabruulsema avatar erodriguezheck avatar johnjeihokim avatar kwaterma avatar kwyip avatar matt1nahat avatar mpcdesigner avatar nchancel avatar ndattani avatar rubyk777 avatar skipiano avatar szilardszalay avatar tanbur avatar tl355 avatar yudongcao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

book_about_quadratization's Issues

Things to fix from PDF in Elisabeth's first email to Nike

  • SFR-BCR-5 needs to be removed because Elisabeth says it's the exact same as SFR-BCR-4. I haven't removed it yet because I didn't want the page numbers to get messed up by removing pages (until some of the emails I've written which referred to specific page numbers, are read).
  • SFR-BCR-3 and SFR-4 are just two special cases of SFR-8. Think about whether it's valuable to keep them. We have indeed kept PTRs which are just special cases of SFRs
  • SFR-BCR-3 and SFR-4 are two cases of Theorem 1 (says Elisabeth) but I've labeled them as special cases of Theorem 2 (SFR-1 and 2 were labeled as Theorem 1, so surely SFR-3 and 4 should be Theorem 2?)
  • SFR-BCR-7 is the same as SFR-BCR-5. One page needs to be removed (but remember that the version in [17] has a typo that was corrected in [26]
  • SFR-BCR-1 and SFR-2 can be combined into one equation just like SFR-3 and SFR-4 (but no one has done it yet, because these require 1 more auxiliary than SFR-BCR-3 & 4 anyway).
  • PTR-BCR-6: Elisabeth says there's only one quadratization using log(n) variables (which is PTR-BCR-3), but in my response I pointed out that Remark 5 from [26] seems to use log(n).
  • PTR-BCR-1: is from Theorem 4.3 of [12] not from [17] ? It is also for even 'k' and not odd 'k' ? There's a missing coefficient of 2 ? However my response email to Elisabeth says that it does seem to be for odd 'k', so this is something to look at more thoroughly.
  • PTR-BCR-2: I had this for only m= k/4, but it should actually be for a range of auxiliaries. While changing this, I noticed that I seem to have n's instead of k's in the matrix. This whole page needs to be checked thoroughly.

Add examples for all SFR gadgets

For "symmetric function reduction" gadgets, the examples are almost always just copied and pasted from some previous page. Now that Tin has derived the polynomial expressions for most of these types of functions, we can give concrete examples of these quadratizations being applied.

Examples are ideally written in only 1 line, and without too much notation apart from b_i and b_{a_i}, as in this case:

image

This might mean we need to pick k and N small for the EKON/AKON functions. If the functions still have to be huge, we can have the degree-k function on one line, and the quadratic function on the next line.

RBL method

It seems it works even without the t^2 term and with the t term just equal to z instead of t.

KKR not working

The alternative form of KKR is working, but not the version in our "summary" section.

More papers

Tasks for Matthew Charbonneau

  • Compile LaTeX for SFR derivations and push PDF to the repository
  • Compile Book and push PDF to the repository
  • Add extra details into SFR derivations PDF for SFR-BCR 1,2,3,4
  • Replace page for Remark 5 from Compact quads 2018 paper, into Book (add summary and example) (2 hours)
  • Type up PTR derivations in LaTeX for PTR-BCR-1-6 (3-4 hours)
  • Add Theorem 6 and paragraphs between Thm 6 and 7, from older BCR paper, to book, if it's not there yet. (2 hours)
  • PTR-BCR-2, auxiliary variables should no be k/4, but should be between k/4 and k/2.
  • Bibliography for Derivations PDF (2 hours)
  • Go through both BCR papers, ABCG papers, and ERH thesis thoroughly to confirm confidently that all quads are in book, and book has no duplicates (8 hour)
  • For each quad that isn't yet in the book (or derived in a PDF) type it up (1.5 hours/quad)
  • Investigate ZZZ-TI-CBBK alpha equations, why does eqnarray mode take up so much more space than Table mode, and is there a workaround, so that we can have eqnarray (because table environment is not really MEANT for equations like this) while having the same spacing as the table environment.

Tuesday 19 January, Matthew emails Nike a progress report.
Next task is updating the book with the brand new quads from 2021.

Things to do:

  1. Improve Introduction (including addition of a quadratic that has same ground state as the quantum cubic example)
  2. Examples for:
  • NTR-ABCG (should be called NTR-ABCG-1)
  • NTR-ABCG-2
  • PTR-BCR-1
  • PTR-BCR-2
  • PTR-BCR-3
  • PTR-BCR-4
  • PTR-KZ
  • PTR-KZ (z version)
  • SFR-ABCG-1
  1. Asymmetric Cubic Reduction example is written in a slightly different format from the previous examples. (Same with the Alternative Forms subsection of this section). Please do not delete this comment until all examples and "alternative forms" are consistent throughout the book.
  2. Add "reproduces the full spectrum" as a "pro" for all methods that do, which includes "Asymmetric Cubic Reduction"
  3. RBL-2016,
  1. Alternative forms for all methods such that everything is in the "tableau"/matrix form

  2. Asymmetric Reduction: Why is there 4 equations instead of 3, and why is the 3rd equation slightly indented?

  3. Deduc-Reduc where we kill negative cubic terms (can even be generalized to higher order, and quadraitcs, and linear?)

  4. Deduc-Reduc where we kill positive terms but require pre-/post-processing to rule out the artificially low ground states which do not satisfy the deducs.

  5. Groebner bases method that Richard originally had, rather than this example which is from Emile's January 2015 work. 1-Qubit's paper was more similar to what Richard originally had.

  6. Example of "application of ELM"

  7. Method for using "strong quadratizations" for reducing multiple terms at once

  8. z versions of all b methods, and b versions of all z methods

  9. Feynman Hamiltonian would normally have many values of t, really it should say "The Feynman Hamiltonian contains 4-local Hamiltonians of the form:" (suggestion by Elizabeth Crosson was "Each term can be written in the form:" but really it's "each term plus its conjugate" so I have changed it to the sentence given here).

Add:
FGBZ can be used for more than one term, it's a pro!
Also add 2015 paper of FGBZ, we have cited 2011 one which is just the conference version
2-cover / pairwise-cover: ABCZ 2016 (one with the bounds), proof of upper bound: Remark 2, there is another quadratization method!!!

Add:
YY gadget to 2 -> 2 gadgets.

Tasks for Ruby

  • need an example for negative term FGBZ
  • "In combination with \ref{subsec:Negative-Monomial-Reduction}, it can reduce $t$ positive terms of degree $k$ in $n$ variables using $n+t(k-1)$ auxiliary variables in the worst case." applies to positive-term FGBZ, but needs to be modified for negative-term FGBZ.
  • Summary and Example sections need to be re-done from scratch for Pairwise Covers

List of things to do

  • Do we have Eq. 4 and Proposition 1 and 2 of https://personal.lse.ac.uk/anthony/Quadratization_web.pdf in the book? Also same paper says " to quadratize in polynomial time any pseudo-Boolean function while only using O(n|F|) auxiliary variables" -- do we have that? Also check Remark 1 (Bucheim and Rinaldi)
  • Example on opening page, b1b2 comes up twice: b1b2 - 4b1b2 = -3b1b2
  • -4b1b2b3 -> -4(b1b2 + b1b3), is something like that possible? Think about example on Pg 1 more. Eq. 2 can be transformed from Eq. 1 very easily, how general can we do that?
  • "approximate ELCs" which Andreas found to be like my "heuristic gadgets"
  • change font of Pauli matrices. (not sure what I meant there, and don't have time to check what time that was written and compare it to when the last font change was made, but now in January 2021 I think perhaps the goal was to straighten up the letters so they take up less space? This is after they were already switched from "math font" to a straighter font, but they're still a bit tilted)
  • example on page 1 for quantum case only has coefficients of 1. Some negatives and non-1 numbers would be nice.
  • quantum example preserves entire spectrum, but I don't want people to think right from page 1 that the entire spectrum needs to be preserved. Perhaps an example that only preserves the round state would be better pedagogically.
  • deduc-reduc. Con: only preserves ground state (and degeneracy?). Can we generalize it to a full-spectrum version?
  • split-reduc: "At this point, we could split H0 again, ...." think about what this sentence means.
  • NTR-ABCG: see comments in .tex.
  • NTR-AC: example and alternative forms don't look right.
  • NTR-RBL: alternative form is quartic not cubic? Also I have a note saying "Eq. 10. i+2 = j" for the bibliography section.
  • PTR-RBL-(3->2): alternative form is quartic but should just be expanded version of 74. Eq. 74 shoudl be Eq. 11 of RBL i+2=j which is apparently not the case.
  • PTR-RBL-(4->2): apprently Eq. 11, i+2 < j, whatever that means (this is just what it says in my rough notes). Example has -z1z2z3z4 but it should be positive.
  • Follow PENCIL NOTES in Nike's printed version, for FGBZ.
  • Describe strategies for choosing coeffs in pairwise covers and Rosenberg
  • Add Rosenberg-like method from Gruber's thesis.
  • KKR(3->2) needs bibliography section!
  • added Alavi's paper but he told me it was an old idea so the original papers should also be added.
  • Figure out what was meant by "Can reduce the connectivity of an objective function, as it breaks interactions between variables." for FGBZ
  • 2017 ABCG paper appears twice in bibliography (probably one of them was meant to be a 2015 arXiv or something? ) figure out why and make sure all references to these are not erroneous.
  • Add https://arxiv.org/abs/math/0103170

Clean up connections between: Strandmark, GBP and ABCG

  • Cite Strandmark's Thesis (where, in the NTR-ABCG reduction?), find out whether the quadratization of Strandmark's Thesis (page 29 right before section 3.6 has been published in a paper)
  • Figure out whether Gallagher, Batra and Parikh have different quadratizations. Find out where to cite them.

SAT-based

lambda >>0, so lambda*[...] must be 0.
There cannot exist any term in [...] that is >0 because then lambda*[...] will not be 0.
Every term in [...] must be satisfied (i.e. must be 0).

H_AF = H_1
H_SAT = H_2

z1z2z3 -> H_2local

(b_not1,b_not2,b_not3) = (b_a1,2 , b_a2,2, b_a3,2)
(b_a4,1) = b_f, and b_a4,2 = b_not_f
b_a000,1 = b_a1
b_a001,1 = b_a2
...
b_a111,1 = b_a8

b_a000,2 = b_a_not1
b_a001,2 = b_a_not2
....

Typos

  • PTR-BCR-3, matrix bottom-left corner was 2^(i +-2) and the +- should either be + or - but I don't know what. SFR_Derivations.pdf in the "everything_else" folder seems to show an even different formula. For now I've just changed the +- to i+j-2 since this is most likely what was meant.

RBL odd

Change name to: PTR-RBL
z1z2z3z4 -> 4za*(z1+z2+z3+z4)+2*(z1z2+z1z3+z1z4+z2z3+z2z4+z3z4)+7;
Alternative forms: (2za + sum_i z_i)^2 -1
Note: original paper does not have the -1 !!!
Con: (2
za + sum_i z_i)^2 -1 doesn't work for k=5, but maybe if we changed the coefficients it could.

Gruber thesis has two NTRs with 1 auxiliary, but I have 4.

  • NTR-ABCG2 comes from pg. 8 of 2016 ABCG discrete applied mathematics, but is not in the thesis. (thesis does NOT say it has only prime factorizations, so it should have NTR-ABCG-2 ?)
  • Add the form of 2016 paper as an "alternative form" of ABCG-2.
  • Is NTR-GBP really isomorphic?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.