Skip to content

Commit

Permalink
🎨⬆️🪝 General Code Improvements and Ruff Update (#188)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.4 →
v3.0.0-alpha.6](pre-commit/mirrors-prettier@v3.0.0-alpha.4...v3.0.0-alpha.6)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.248 →
v0.0.254](astral-sh/ruff-pre-commit@v0.0.248...v0.0.254)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Nils Quetschlich <Nils.Quetschlich@tum.de>
Co-authored-by: Lukas Burgholzer <burgholzer@me.com>
  • Loading branch information
3 people authored Mar 7, 2023
1 parent 0b1227f commit 64d1ae8
Show file tree
Hide file tree
Showing 16 changed files with 1,177 additions and 1,139 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ repos:

# Format configuration files with prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.4"
rev: "v3.0.0-alpha.6"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, javascript, json]

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.248
rev: v0.0.254
hooks:
- id: ruff
args: ["--fix"]
78 changes: 52 additions & 26 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,175 +6,201 @@
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "dj",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "ghz",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "graphstate",
"include": true,
"min_qubits": 3,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "groundstate",
"include": true,
"instances": ["small", "medium"]
"instances": ["small", "medium"],
"precheck_possible": false
},
{
"name": "grover",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1,
"ancillary_mode": ["noancilla", "v-chain"]
"ancillary_mode": ["noancilla", "v-chain"],
"precheck_possible": false
},
{
"name": "hhl",
"include": true,
"min_index": 1,
"max_index": 10
"max_index": 10,
"precheck_possible": false
},
{
"name": "portfolioqaoa",
"include": true,
"min_qubits": 3,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "portfoliovqe",
"include": true,
"min_qubits": 3,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "pricingcall",
"include": true,
"min_uncertainty": 2,
"max_uncertainty": 130
"max_uncertainty": 130,
"precheck_possible": false
},
{
"name": "pricingput",
"include": true,
"min_uncertainty": 2,
"max_uncertainty": 130
"max_uncertainty": 130,
"precheck_possible": false
},
{
"name": "qaoa",
"include": true,
"min_qubits": 3,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "qft",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "qftentangled",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "qgan",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": false
},
{
"name": "qpeexact",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "qpeinexact",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "qwalk",
"include": true,
"min_qubits": 3,
"max_qubits": 130,
"stepsize": 1,
"ancillary_mode": ["noancilla", "v-chain"]
"ancillary_mode": ["noancilla", "v-chain"],
"precheck_possible": false
},
{
"name": "realamprandom",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "routing",
"include": true,
"min_nodes": 2,
"max_nodes": 130
"max_nodes": 130,
"precheck_possible": false
},
{
"name": "shor",
"include": true,
"instances": ["xsmall", "small", "medium"]
"instances": ["xsmall", "small", "medium"],
"precheck_possible": false
},
{
"name": "su2random",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "tsp",
"include": true,
"min_nodes": 2,
"max_nodes": 10
"max_nodes": 10,
"precheck_possible": false
},
{
"name": "twolocalrandom",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "vqe",
"include": true,
"min_qubits": 3,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
},
{
"name": "wstate",
"include": true,
"min_qubits": 2,
"max_qubits": 130,
"stepsize": 1
"stepsize": 1,
"precheck_possible": true
}
]
}
3 changes: 2 additions & 1 deletion src/mqt/bench/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from mqt.bench.benchmark_generator import (
create_benchmarks_from_config,
generate,
get_benchmark,
BenchmarkGenerator,
timeout_watcher,
)
from mqt.bench import qiskit_helper, tket_helper, utils
Loading

0 comments on commit 64d1ae8

Please sign in to comment.