-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Add Python interface improvements and Qiskit export support (#859)
## Description This pull request introduces several changes to enhance Python interoperability and integration with Qiskit. Key updates include: - Adding a method to natively export `QuantumComputations` objects to Qiskit `QuantumCircuit`. - Exposing registers from `QuantumComputation` in the Python interface. - Addressing issues with calling `name` and `end` on Python registers. - Fixing the implementation of `__iter__` and providing `items` for `Permutation`. - Enhancing `CompoundOperation` to implement the `MutableSequence[Operation]` interface. These changes provide better usability and extend functionality when using the library in Python environments. Fixes #35 ## Checklist: - [x] The pull request only contains commits that are related to it. - [x] I have added appropriate tests and documentation. - [x] I have made sure that all CI jobs on GitHub pass. - [x] The pull request introduces no new warnings and follows the project's style guidelines
- Loading branch information
Showing
12 changed files
with
873 additions
and
65 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright (c) 2025 Chair for Design Automation, TUM | ||
# All rights reserved. | ||
# | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# Licensed under the MIT License | ||
|
||
"""MQT Qiskit Plugin.""" | ||
|
||
from __future__ import annotations | ||
|
||
from .mqt_to_qiskit import mqt_to_qiskit | ||
from .qiskit_to_mqt import qiskit_to_mqt | ||
|
||
__all__ = [ | ||
"mqt_to_qiskit", | ||
"qiskit_to_mqt", | ||
] |
Oops, something went wrong.