Giter Site home page Giter Site logo

dwig's Issues

Batch generation

When generating many cases accessing the QPU properties and setting up the data structures is a significant overhead. This should be broken into two steps, so batches of cases can be generated much faster.

Consider adding scaling term

So that parameters can be within coupler ranges but you can still get your objective value in the correct units.

Work around random.choices

This function is not supported in python 3.5, we should work around it so that the code is more portable.

-cs, -ss option can cause JSON creation to fail

When using the following command:

./dwig.py -pp -cs 0,4 0,5 1,4 1,5 const -cp 0.2 -f -0.5

dwig will crash, stating "a spin pair must be x,y integers". The parser is attempting to take an arbitrary number of qubit pairs, and is unable to differentiate the "const" subparser. This can easily be worked around by swapping the order of the -pp and -cs arguments, as shown:

./dwig.py -cs 0,4 0,5 1,4 1,5 -pp const -cp 0.2 -f -0.5

The cause of this issue is in the argument parsing, and there is not an immediately obvious fix that would allow passing arbitrary coupler or spin sets.

Test Case Names

Consider removing i from cases names as all outputs are now ising.

Make bqp-json a separate python package?

The primary function would be to store the schema file and have a dedicated validate method, which checks properties that are outside the scope of json schema.

This would also be a good place to put the bqp utility scripts, such as the format translators.

Improve Logging

Use real logs instead of just dumping everything to stderr.

Coefficient Truncation

Consider adding an option to Truncate floating point values based on the precision limitations of the QPU.

Runtime Slowness

This issue is discussed in the README. This will be resolved when SAPI is compatible with python 3.

FL Ground State

Using the ground state of all -1/0 can result in an unfair advantage for tree search solvers. The reason being that always branching to the low value first results in immediately finding OPT.

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.