Skip to content

Update MQT Bench Dependency and MQT Predictor Paper Reference #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 19, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions CITATION.bib
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@MISC{quetschlich2023mqtpredictor,
AUTHOR = {N. Quetschlich and L. Burgholzer and R. Wille},
TITLE = {{MQT Predictor: Automatic Device Selection with Device-Specific Circuit Compilation for Quantum Computing}},
YEAR = {2023},
EPRINT = {2310.06889},
EPRINTTYPE = {arxiv},
@ARTICLE{quetschlich2024mqtpredictor,
AUTHOR = {N. Quetschlich and L. Burgholzer and R. Wille},
TITLE = {{MQT Predictor: Automatic Device Selection with Device-Specific Circuit Compilation for Quantum Computing}},
YEAR = {2024},
JOURNAL = {ACM Transactions on Quantum Computing (TQC)},
DOI = {10.1145/3673241},
EPRINT = {2310.06889},
EPRINTTYPE = {arxiv},
}
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@ print(qc_compiled.draw())

**Detailed documentation and examples are available at [ReadTheDocs](https://mqt.readthedocs.io/projects/predictor).**

## References

In case you are using MQT Predictor in your work, we would be thankful if you referred to it by citing the following publication:

```bibtex
@ARTICLE{quetschlich2024mqtpredictor,
AUTHOR = {N. Quetschlich and L. Burgholzer and R. Wille},
TITLE = {{MQT Predictor: Automatic Device Selection with Device-Specific Circuit Compilation for Quantum Computing}},
YEAR = {2024},
JOURNAL = {ACM Transactions on Quantum Computing (TQC)},
DOI = {10.1145/3673241},
EPRINT = {2310.06889},
EPRINTTYPE = {arxiv},
}
```

## Acknowledgements

This project received funding from the European Research Council (ERC) under the European Union's Horizon 2020 research
Expand Down
2 changes: 1 addition & 1 deletion docs/References.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
References
==========

If you use *MQT Predictor* in your work, we would appreciate if you cited :cite:labelpar:`quetschlich2023mqtpredictor` (which subsumes :cite:labelpar:`quetschlich2023prediction` and :cite:labelpar:`quetschlich2023compileroptimization`).
If you use *MQT Predictor* in your work, we would appreciate if you cited :cite:labelpar:`quetschlich2024mqtpredictor` (which subsumes :cite:labelpar:`quetschlich2023prediction` and :cite:labelpar:`quetschlich2023compileroptimization`).
If you are explicitly referring to the application-aware compilation scheme, please cite :cite:labelpar:`quetschlich2024application_compilation`.

.. bibliography::
6 changes: 4 additions & 2 deletions docs/refs.bib
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@MISC{quetschlich2023mqtpredictor,
@ARTICLE{quetschlich2024mqtpredictor,
AUTHOR = {N. Quetschlich and L. Burgholzer and R. Wille},
TITLE = {{MQT Predictor: Automatic Device Selection with Device-Specific Circuit Compilation for Quantum Computing}},
YEAR = {2023},
YEAR = {2024},
JOURNAL = {ACM Transactions on Quantum Computing (TQC)},
DOI = {10.1145/3673241},
EPRINT = {2310.06889},
EPRINTTYPE = {arxiv},
}
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ requires-python = ">=3.10"
dynamic = ["version"]

dependencies = [
"mqt.bench>=1.1.2, <1.2.0",
"pytket_qiskit>=0.52.0, <0.54.0",
"mqt.bench>=1.1.3, <1.2.0",
"sb3_contrib>=2.0.0, <2.3.1",
"scikit-learn>=1.4.0,<1.5.1",
"tensorboard>=2.11.0, <2.16.3",
Expand Down
1 change: 1 addition & 0 deletions src/mqt/predictor/rl/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ def get_bqskit_native_gates(device: Device) -> list[gates.Gate] | None:
"rigetti": [gates.RXGate(), gates.RZGate(), gates.CZGate()],
"ionq": [gates.RXXGate(), gates.RZGate(), gates.RYGate(), gates.RXGate()],
"quantinuum": [gates.RZZGate(), gates.RZGate(), gates.RYGate(), gates.RXGate()],
"iqm": [gates.U3Gate(), gates.CZGate()],
}

if provider not in native_gatesets:
Expand Down
6 changes: 4 additions & 2 deletions tests/compilation/test_integration_further_SDKs.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ def test_bqskit_synthesis_action(device: Device) -> None:
check_nat_gates = GatesInBasis(basis_gates=device.basis_gates)
check_nat_gates(native_gates_qc)
only_nat_gates = check_nat_gates.property_set["all_gates_in_basis"]
if "oqc" not in device.name:
assert only_nat_gates
# OQC devices cannot be synthesized using BQSKit because the ECR gate is not yet supported.
# IQM devices have a native R gate that is approximated using the U3 gate, but this equivalence is not recognized
# by the currently implemented check whether the synthesis was successful.
assert only_nat_gates or "oqc" in device.name or "iqm" in device.name


def test_bqskit_mapping_action_swaps_necessary() -> None:
Expand Down
Loading