-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from JuliaQUBO/px/checkpoint
Merge pending changes
- Loading branch information
Showing
9 changed files
with
79 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
name = "QUBO" | ||
uuid = "ce8c2e91-a970-4681-856b-16178c24a30c" | ||
authors = ["pedromxavier <[email protected]>", "pedroripper <[email protected]>", "joaquimg <[email protected]>", "AndradeTiago <[email protected]>", "bernalde <dbernalneira@usra.edu>"] | ||
version = "0.3.1" | ||
authors = ["pedromxavier <[email protected]>", "pedroripper <[email protected]>", "joaquimg <[email protected]>", "AndradeTiago <[email protected]>", "bernalde <dbernaln@purdue.edu>"] | ||
version = "0.3.2" | ||
|
||
[deps] | ||
JuMP = "4076af6c-e467-56ae-b986-b466b2749572" | ||
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee" | ||
QUBODrivers = "a3f166f7-2cd3-47b6-9e1e-6fbfe0449eb0" | ||
QUBOTools = "60eb5b62-0a39-4ddc-84c5-97d2adff9319" | ||
ToQUBO = "9a412ddf-83fa-43b6-9748-7843c851aa65" | ||
|
||
[compat] | ||
JuMP = "1" | ||
QUBODrivers = "0.3.2" | ||
QUBOTools = "0.9.3" | ||
ToQUBO = "0.1.8" | ||
julia = "1.6" | ||
JuMP = "1" | ||
MathOptInterface = "1" | ||
QUBODrivers = "0.3.3" | ||
QUBOTools = "0.10" | ||
ToQUBO = "0.1.9" | ||
julia = "1.9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
using Documenter | ||
using QUBO | ||
|
||
# Set up to run docstrings with jldoctest | ||
DocMeta.setdocmeta!(QUBO, :DocTestSetup, :(using QUBO); recursive = true) | ||
|
||
makedocs(; | ||
doctest = true, | ||
clean = true, | ||
format = Documenter.HTML( | ||
assets = ["assets/extra_styles.css", "assets/favicon.ico"], | ||
doctest = true, | ||
clean = true, | ||
warnonly = [:missing_docs], | ||
format = Documenter.HTML( # | ||
assets = ["assets/extra_styles.css", "assets/favicon.ico"], | ||
mathengine = Documenter.KaTeX(), | ||
sidebar_sitename = false, | ||
sidebar_sitename = false | ||
), | ||
sitename = "QUBO.jl", | ||
authors = "Pedro Xavier and Pedro Ripper and Tiago Andrade and Joaquim Garcia and David Bernal", | ||
pages = ["Home" => "index.md"], | ||
workdir = ".", | ||
authors = "Pedro Maciel Xavier and Pedro Ripper and Tiago Andrade and Joaquim Dias Garcia and David E. Bernal Neira", | ||
pages = ["Home" => "index.md"], | ||
workdir = @__DIR__ | ||
) | ||
|
||
if "--skip-deploy" ∈ ARGS | ||
@warn "Skipping deployment" | ||
else | ||
deploydocs(repo = raw"github.com/psrenergy/QUBO.jl.git", push_preview = true) | ||
deploydocs(repo = raw"github.com/JuliaQUBO/QUBO.jl.git", push_preview = true) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,41 @@ | ||
module QUBO | ||
|
||
import JuMP | ||
import MathOptInterface as MOI | ||
|
||
import QUBOTools, QUBODrivers, ToQUBO | ||
export QUBOTools, QUBODrivers, ToQUBO | ||
# QUBOTools | ||
import QUBOTools | ||
import QUBOTools: ↑, ↓ | ||
import QUBOTools: reads | ||
|
||
const QUBOTools_MOI = Base.get_extension(QUBOTools, :QUBOTools_MOI) | ||
const Spin = QUBOTools_MOI.Spin | ||
const NumberOfReads = QUBOTools_MOI.NumberOfReads | ||
|
||
export QUBOTools | ||
export ↑, ↓ | ||
export reads | ||
export Spin, NumberOfReads | ||
|
||
# QUBODrivers | ||
import QUBODrivers | ||
import QUBODrivers: ExactSampler, IdentitySampler, RandomSampler | ||
|
||
export QUBODrivers | ||
export ExactSampler, IdentitySampler, RandomSampler | ||
|
||
import QUBODrivers: Spin | ||
export Spin | ||
# ToQUBO | ||
import ToQUBO | ||
export ToQUBO | ||
|
||
include("wrapper.jl") | ||
|
||
function source_model(model::JuMP.Model) | ||
return JuMP.get_attribute(model, ToQUBO.Attributes.SourceModel()) | ||
end | ||
|
||
include("jump/wrapper.jl") | ||
function target_model(model::JuMP.Model) | ||
return JuMP.get_attribute(model, ToQUBO.Attributes.TargetModel()) | ||
end | ||
|
||
end # module QUBO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4aab7cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
4aab7cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/116026
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: