Skip to content

Commit

Permalink
✨ Update to latest versions (#18)
Browse files Browse the repository at this point in the history
* ⬆️ update to latest MQT versions

* 🔥 remove duplicate link from readme

* ♻️ update the examples

* 🚨 hide the output of one cell causing a docplex syntax warning

* 🍱 update download stats

* ✏️ missing adjustment
  • Loading branch information
burgholzer authored Sep 16, 2024
1 parent e0c4f63 commit 1eedcc2
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 25 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ The [_Munich Quantum Toolkit (MQT)_](https://mqt.readthedocs.io) is a collection
| GitHub Project | latest version | forks | stars |
| --------------------- | --------------------------------: | ------------------------------: | ------------------------------: |
| [`mqt-ddsim`] | ![gh.mqt.ddsim.release][] | ![gh.mqt.ddsim.forks][] | ![gh.mqt.ddsim.stars][] |
| [`mqt-qcec`] | ![gh.mqt.qcec.release][] | ![gh.mqt.qcec.forks][] | ![gh.mqt.qcec.stars][] |
| [`mqt-qmap`] | ![gh.mqt.qmap.release][] | ![gh.mqt.qmap.forks][] | ![gh.mqt.qmap.stars][] |
| [`mqt-qecc`] | ![gh.mqt.qecc.release][] | ![gh.mqt.qecc.forks][] | ![gh.mqt.qecc.stars][] |
| [`mqt-qmap`] | ![gh.mqt.qmap.release][] | ![gh.mqt.qmap.forks][] | ![gh.mqt.qmap.stars][] |
| [`mqt-qcec`] | ![gh.mqt.qcec.release][] | ![gh.mqt.qcec.forks][] | ![gh.mqt.qcec.stars][] |
| [`mqt-bench`] | ![gh.mqt.bench.release][] | ![gh.mqt.bench.forks][] | ![gh.mqt.bench.stars][] |
| [`mqt-predictor`] | ![gh.mqt.predictor.release][] | ![gh.mqt.predictor.forks][] | ![gh.mqt.predictor.stars][] |
| [`mqt-core`] | ![gh.mqt.core.release][] | ![gh.mqt.core.forks][] | ![gh.mqt.core.stars][] |
Expand All @@ -35,9 +35,9 @@ The [_Munich Quantum Toolkit (MQT)_](https://mqt.readthedocs.io) is a collection
| [`mqt-ddvis`] | ![gh.mqt.ddvis.release][] | ![gh.mqt.ddvis.forks][] | ![gh.mqt.ddvis.stars][] |
| [`mqt-qusat`] | ![gh.mqt.qusat.release][] | ![gh.mqt.qusat.forks][] | ![gh.mqt.qusat.stars][] |
| [`mqt-dasqa`] | ![gh.mqt.dasqa.release][] | ![gh.mqt.dasqa.forks][] | ![gh.mqt.dasqa.stars][] |
| [`mqt-ionshuttler`] | ![gh.mqt.ionshuttler.release][] | ![gh.mqt.ionshuttler.forks][] | ![gh.mqt.ionshuttler.stars][] |
| [`mqt-qubomaker`] | ![gh.mqt.qubomaker.release][] | ![gh.mqt.qubomaker.forks][] | ![gh.mqt.qubomaker.stars][] |
| [`mqt-qudits`] | ![gh.mqt.qudits.release][] | ![gh.mqt.qudits.forks][] | ![gh.mqt.qudits.stars][] |
| [`mqt-qubomaker`] | ![gh.mqt.qubomaker.release][] | ![gh.mqt.qubomaker.forks][] | ![gh.mqt.qubomaker.stars][] |
| [`mqt-ionshuttler`] | ![gh.mqt.ionshuttler.release][] | ![gh.mqt.ionshuttler.forks][] | ![gh.mqt.ionshuttler.stars][] |

[`mqt-ddsim`]: https://github.com/cda-tum/mqt-ddsim
[`mqt-qcec`]: https://github.com/cda-tum/mqt-qcec
Expand All @@ -51,7 +51,6 @@ The [_Munich Quantum Toolkit (MQT)_](https://mqt.readthedocs.io) is a collection
[`mqt-ddvis`]: https://github.com/cda-tum/mqt-ddvis
[`mqt-qusat`]: https://github.com/cda-tum/mqt-qusat
[`mqt-dasqa`]: https://github.com/cda-tum/mqt-dasqa
[`mqt-qubomaker`]: https://github.com/cda-tum/mqt-qubomaker
[`mqt-ionshuttler`]: https://github.com/cda-tum/mqt-ionshuttler
[`mqt-qubomaker`]: https://github.com/cda-tum/mqt-qubomaker
[`mqt-qudits`]: https://github.com/cda-tum/mqt-qudits
Expand Down Expand Up @@ -114,8 +113,8 @@ The [_Munich Quantum Toolkit (MQT)_](https://mqt.readthedocs.io) is a collection
| [`mqt.qecc`][pypi.mqt.qecc.stats] | ![pypi.mqt.qecc.version][] | ![pypi.mqt.qecc.weekly][] | ![pypi.mqt.qecc.monthly][] | [![pypi.mqt.qecc.total]](https://pepy.tech/project/mqt.qecc) |
| [`mqt.bench`][pypi.mqt.bench.stats] | ![pypi.mqt.bench.version][] | ![pypi.mqt.bench.weekly][] | ![pypi.mqt.bench.monthly][] | [![pypi.mqt.bench.total]](https://pepy.tech/project/mqt.bench) |
| [`mqt.predictor`][pypi.mqt.predictor.stats] | ![pypi.mqt.predictor.version][] | ![pypi.mqt.predictor.weekly][] | ![pypi.mqt.predictor.monthly][] | [![pypi.mqt.predictor.total]](https://pepy.tech/project/mqt.predictor) |
| [`mqt.problemsolver`][pypi.mqt.problemsolver.stats] | ![pypi.mqt.problemsolver.version][] | ![pypi.mqt.problemsolver.weekly][] | ![pypi.mqt.problemsolver.monthly][] | [![pypi.mqt.problemsolver.total]](https://pepy.tech/project/mqt.problemsolver) |
| [`mqt.qudits`][pypi.mqt.qudits.stats] | ![pypi.mqt.qudits.version][] | ![pypi.mqt.qudits.weekly][] | ![pypi.mqt.qudits.monthly][] | [![pypi.mqt.qudits.total]](https://pepy.tech/project/mqt.qudits) |
| [`mqt.problemsolver`][pypi.mqt.problemsolver.stats] | ![pypi.mqt.problemsolver.version][] | ![pypi.mqt.problemsolver.weekly][] | ![pypi.mqt.problemsolver.monthly][] | [![pypi.mqt.problemsolver.total]](https://pepy.tech/project/mqt.problemsolver) |

[pypi.mqt.ddsim.stats]: https://pypistats.org/packages/mqt-ddsim
[pypi.mqt.ddsim.version]: https://img.shields.io/pypi/v/mqt.ddsim?label=%20&style=flat-square
Expand Down
9 changes: 5 additions & 4 deletions docs/handbook/02_simulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ This includes strong and weak simulation {cite:p}`zulehnerAdvancedSimulationQuan
%config InlineBackend.figure_formats = ['svg']
```

Consider the following listing that describes the quantum circuit for generating a three-qubit GHZ state (also shown in {numref}`fig-ghz-circuit`):
Consider the following listing that describes the quantum circuit for generating a four-qubit GHZ state (also shown in {numref}`fig-ghz-circuit`):

```{code-cell} ipython3
:tags: [remove-output]
from qiskit import QuantumCircuit
circ = QuantumCircuit(3)
circ.h(2)
circ = QuantumCircuit(4)
circ.h(3)
circ.cx(3, 2)
circ.cx(2, 1)
circ.cx(1, 0)
circ.measure_all()
Expand All @@ -52,7 +53,7 @@ mystnb:
width: 50%
figure:
align: center
caption: "Quantum circuit for generating a three-qubit GHZ state."
caption: "Quantum circuit for generating a four-qubit GHZ state."
name: fig-ghz-circuit
---
circ.draw(output="mpl", style="iqp")
Expand Down
19 changes: 12 additions & 7 deletions docs/handbook/03_compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,32 +55,37 @@ mystnb:
width: 30%
figure:
align: center
caption: "Coupling map of a generic five-qubit IBM device."
caption: "Coupling map of a generic five-qubit device."
name: fig-device
---
%config InlineBackend.figure_formats = ['svg']
from qiskit import QuantumCircuit
from qiskit.providers.fake_provider import Fake5QV1
from qiskit.providers.fake_provider import GenericBackendV2
from qiskit.visualization import plot_gate_map
circ = QuantumCircuit(3)
circ.h(2)
circ = QuantumCircuit(4)
circ.h(3)
circ.cx(3, 2)
circ.cx(2, 1)
circ.cx(1, 0)
circ.measure_all()
backend = Fake5QV1()
backend = GenericBackendV2(num_qubits=5, coupling_map=[[0, 1], [1, 0], [0, 2], [2, 0], [0, 3], [3, 0], [0, 4], [4, 0]])
plot_gate_map(backend)
```

Then, mapping the circuit to that device merely requires the following lines of Python and results in the circuit shown in {numref}`fig-ghz-circuit-mapped`.

```{code-cell} ipython3
from mqt.qmap import compile
from qiskit.providers.fake_provider import Fake5QV1
from qiskit.providers.fake_provider import GenericBackendV2
backend = GenericBackendV2(
num_qubits=5,
coupling_map=[[0, 1], [1, 0], [0, 2], [2, 0], [0, 3], [3, 0], [0, 4], [4, 0]]
)
backend = Fake5QV1()
circ_mapped, results = compile(circ, backend)
```

Expand Down
9 changes: 5 additions & 4 deletions docs/handbook/04_verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,17 @@ Verifying that the quantum circuit from {numref}`fig-ghz-circuit-mapped` has bee
%config InlineBackend.figure_formats = ['svg']
from qiskit import QuantumCircuit
from qiskit.providers.fake_provider import Fake5QV1
from qiskit.providers.fake_provider import GenericBackendV2
from mqt.qmap import compile
circ = QuantumCircuit(3)
circ.h(2)
circ = QuantumCircuit(4)
circ.h(3)
circ.cx(3, 2)
circ.cx(2, 1)
circ.cx(1, 0)
circ.measure_all()
backend = Fake5QV1()
backend = GenericBackendV2(num_qubits=5, coupling_map=[[0, 1], [1, 0], [0, 2], [2, 0], [0, 3], [3, 0], [0, 4], [4, 0]])
circ_mapped, _ = compile(circ, backend)
```
Expand Down
1 change: 1 addition & 0 deletions docs/handbook/05_benchmarking.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ To make the benchmarks as accessible as possible, MQT Bench comes as an easy-to-
A larger version of the quantum circuit from {numref}`fig-ghz-circuit` can easily be obtained programmatically from the MQT Bench Python package as follows:

```{code-cell} ipython3
:tags: [remove-output]
from mqt.bench import get_benchmark
circ = get_benchmark("ghz", circuit_size=8, level="alg")
Expand Down
8 changes: 4 additions & 4 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ furo
ipykernel
ipython
matplotlib
mqt-bench~=1.1.0
mqt-ddsim~=1.21.0
mqt-qcec~=2.5.0
mqt-qmap~=2.5.0
mqt-bench~=1.1.5
mqt-ddsim~=1.23.0
mqt-qcec~=2.7.1
mqt-qmap~=2.6.0
myst-nb
myst_parser>=0.13
pybtex>=0.24
Expand Down

0 comments on commit 1eedcc2

Please sign in to comment.