Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include LICENSE.txt
include requirements.txt
include pytest.ini

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ pip install -r requirements.txt
Now, suppose you want to run the mapping benchmarks using only `tweedledum`.
You must do it using `pytest`
```bash
pytest games/mapping/map_queko.py -m tweedledum --store
pytest red_queen/games/mapping/map_queko.py -m tweedledum --store
```

To run pytest on Windows, you will have to use `python -m` in order to run the
`pytest` command. You will also need to add `-s` to your pytest call to disable
stdin handling.
```bash
python -m pytest -s games/mapping/map_queko.py -m tweedledum --store
python -m pytest -s red_queen/games/mapping/map_queko.py -m tweedledum --store
```

The benchmark suite will consider all functions named `bench_*` in
`games/mapping/map_queko.py`. Because we set the `-m` option, only the the ones
`red_queen/games/mapping/map_queko.py`. Because we set the `-m` option, only the the ones
marked with `tweedledum` will be run. (We could easy do the same for `qiskit`).
If you don't define a `-m` option, all `bench_*` functions will be run.

Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ markers =
tweedledum
tket
python_functions = bench_*
testpaths =
red_queen/games
1 change: 1 addition & 0 deletions red_queen/VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister

from applications import backends, run_qiskit_circuit
from red_queen.games.applications import backends, run_qiskit_circuit


QASM_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "qasm")
Expand Down
Loading