feature: add Circuit.to_pytket() and QuantinuumExecutor (Closes #3 and #6)#31
Open
sim-eng-ii wants to merge 19 commits into
Open
feature: add Circuit.to_pytket() and QuantinuumExecutor (Closes #3 and #6)#31sim-eng-ii wants to merge 19 commits into
Circuit.to_pytket() and QuantinuumExecutor (Closes #3 and #6)#31sim-eng-ii wants to merge 19 commits into
Conversation
Author
|
@ddri Hello, feel free to let me know if this is okay or if you need any changes. I will try fixing other issues as well! |
Circuit.to_pytket() Circuit.to_pytket() and QuantinuumExecutor
Author
Feature/quantinuum exec
Circuit.to_pytket() and QuantinuumExecutorCircuit.to_pytket() and QuantinuumExecutor (Closes #3 and #6)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses issues #3 and #6
The method
to_pyket()is introduced inmarqov\circuits.pyand allows for Marqov circuits to flow into the entire pytket ecosystem. The method was added alongsideto_qiskit(),to_braket(),to_pyquil()methodsThe implementation was written by looking at the structure of
from_qiskit(), though in reverse.Finally, pytket was added in
pyproject.tomlRegarding
QuantinuumExecutor, I have added theQuantumExecutorConfigandQuantumExecutorclasses underquantinuum.pyInegrated
_create_quantinuum_executor()infactory.pyType of change
Circuit format converter and executor
Testing
pytest tests/ -vand tests passTest details:
pytest tests/test_circuits.py::TestToPytket::test_to_pytket_bell_state -vThe test has two assertions using
bell_state()Checklist
CONTRIBUTING.md §1(if adding a circuit converter)Note: used cursor to install libraries,