-
Notifications
You must be signed in to change notification settings - Fork 11
feat: Add conversion between jeff and Qiskit
#64
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
Closed
kawacukennedy
wants to merge
8
commits into
unitaryfoundation:main
from
kawacukennedy:feat/qiskit-convert
Closed
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f1a6d64
feat: add jeff ↔ Qiskit QuantumCircuit converter
kawacukennedy c366625
feat: rewrite Qiskit converter in C++ with capnp + Qiskit C API
kawacukennedy d179633
Address PR #64 review: direct linking, data-driven gates, build-time …
kawacukennedy 963c31c
fix: revert auto-generated capnp files to main (use v1.3.0) to fix re…
kawacukennedy 7c5371f
fix: skip qiskit_convert tests if Qiskit not installed (prevents CI f…
kawacukennedy 4d7514c
fix: apply ruff format and fix F541 lint in test file
kawacukennedy bb84316
fix: Address PR #64 review: use shared capnp, qubit allocs, cleaner C…
kawacukennedy cbcecb9
fix: address PR #64 review round 2 — text-format round-trip, comprehe…
kawacukennedy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,3 +44,6 @@ venv/ | |
|
|
||
| # MacOS | ||
| *.DS_Store | ||
|
|
||
| # CMake build directory | ||
| build/ | ||
Large diffs are not rendered by default.
Oops, something went wrong.
|
denialhaag marked this conversation as resolved.
|
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| cmake_minimum_required(VERSION 3.20) | ||
| project(jeff-qiskit-convert LANGUAGES CXX) | ||
|
|
||
| set(CMAKE_CXX_STANDARD 20) | ||
| set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
|
||
| find_package(PkgConfig REQUIRED) | ||
| pkg_check_modules(CAPNP REQUIRED capnp) | ||
|
|
||
| set(JEFF_SRC_DIR /tmp/jeff/impl/cpp/src) | ||
| set(QISKIT_CAPI_DIR /private/tmp/braket-venv2/lib/python3.12/site-packages/qiskit/capi) | ||
|
denialhaag marked this conversation as resolved.
Outdated
|
||
|
|
||
| add_executable(jeff-qiskit-convert | ||
| main.cpp | ||
| ${JEFF_SRC_DIR}/capnp/jeff.capnp.c++ | ||
| ) | ||
|
|
||
| target_include_directories(jeff-qiskit-convert PRIVATE | ||
| ${JEFF_SRC_DIR} | ||
| ${QISKIT_CAPI_DIR}/include | ||
| ${CAPNP_INCLUDE_DIRS} | ||
| ) | ||
|
|
||
| target_link_directories(jeff-qiskit-convert PRIVATE | ||
| ${CAPNP_LIBRARY_DIRS} | ||
| ) | ||
|
|
||
| target_link_libraries(jeff-qiskit-convert PRIVATE | ||
| ${CAPNP_LIBRARIES} | ||
| ${CMAKE_DL_LIBS} | ||
| ) | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.