Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliaqubo/qubolib.jl
QUBO Instances for benchmarking
https://github.com/juliaqubo/qubolib.jl
benchmark database instances quantum-optimization qubo
Last synced: about 1 month ago
JSON representation
QUBO Instances for benchmarking
- Host: GitHub
- URL: https://github.com/juliaqubo/qubolib.jl
- Owner: JuliaQUBO
- License: mit
- Created: 2023-06-02T01:53:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-13T05:35:23.000Z (about 1 month ago)
- Last Synced: 2024-10-14T16:54:43.601Z (about 1 month ago)
- Topics: benchmark, database, instances, quantum-optimization, qubo
- Language: Julia
- Homepage: http://juliaqubo.github.io/QUBOLib.jl/
- Size: 403 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QUBOLib.jl
## Getting Started
### Installation
```julia
julia> import Pkg; Pkg.add(url="https://github.com/JuliaQUBO/QUBOLib.jl")julia> using QUBOLib
```### Example
```julia
julia> using QUBOLibjulia> QUBOLib.access() do index
println(index)
end
```## Accessing the instance index database
> **Warning**
> This requires [SQLite.jl](https://github.com/JuliaDatabases/SQLite.jl) and [DataFrames.jl](https://github.com/JuliaData/DataFrames.jl) to be installed.```julia
julia> using QUBOLibjulia> using SQLite, DataFrames
julia> models = QUBOLib.access() do index
df = DBInterface.execute(
QUBOLib.database(index),
"SELECT instance FROM Instances WHERE size BETWEEN 100 AND 200;"
) |> DataFramereturn [load_instance(index, i) for i in df[!, :instance]]
end
```### Listing Collections
```julia
julia> QUBOLib.access() do index
DBInterface.execute(
QUBOLib.database(index),
"SELECT * FROM Collections;"
) |> DataFrame
end
```