GithubHelp home page GithubHelp logo

secquoia / qubolib.jl Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 278 KB

QUBO Instances for benchmarking

Home Page: https://pedromxavier.github.io/QUBOLib.jl/

License: MIT License

Julia 100.00%
benchmark database instances quantum-optimization qubo

qubolib.jl's Introduction

QUBOLib.jl

QUBO Instances for benchmarking

Introduction

This package provides a wrapper around QUBOLibData.jl's artifact to easily access QUBO / Ising instances. Instances are retrieved as model objects from QUBOTools.jl.

Getting Started

Installation

julia> import Pkg; Pkg.add(url="https://github.com/pedromxavier/QUBOLib.jl")

julia> using QUBOLib

Example

julia> coll = first(list_collections())   # get code of the first registered collection

julia> inst = first(list_instances(coll)) # get code of the first instance from that collection

julia> model = load_instance(coll, inst)  # retrieve QUBOTools model

Accessing the instance index database

Warning This requires SQLite.jl and DataFrames.jl to be installed.

julia> using SQLite, DataFrames

julia> db = QUBOLib.database()

julia> df = DBInterface.execute(
           db,
           "SELECT collection, instance FROM instances WHERE size BETWEEN 100 AND 200;"
       ) |> DataFrame

julia> models = [
           load_instance(coll, inst)
           for (coll, inst) in zip(df[!, :collection], df[!, :instance])
       ]

qubolib.jl's People

Contributors

bernalde avatar pedromxavier avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

zedongpeng

qubolib.jl's Issues

How to use in README

Pedro,
I'm not very familiar with having the instances in the releases and not directly in the repo's code.
Can you add some indications on retrieving the instances in the README?

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.