-
Notifications
You must be signed in to change notification settings - Fork 16
add qiskit basis passes #11
base: main
Are you sure you want to change the base?
Conversation
|
||
def run_qiskit_basis(benchmark, basis_method, basis, path): | ||
circuit = QuantumCircuit.from_qasm_file(str(path)) | ||
pm = _qiskit_pass_manager(basis_method, basis) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of doing this maybe we can leverage generate_translation_passmanager()
https://github.com/Qiskit/qiskit-terra/blob/0.21.0rc1/qiskit/transpiler/preset_passmanagers/common.py#L226 which will mirror what transpile()
uses internally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to do several passes so you don't get the same granularity but I'm ok with this division at this stage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in 541780d
* Initial commit: Added CI Job to test new benchmarks * Added test file (copy of run_bv.py) * Added Matthew's suggestions (#4) * Initial commit for ci tests * Change bash script * Bash script does not need cat * Added second test file to test * Sugar is unnecessary * Added test in mapping * Mapping takes way longer. Will develop further. * Delete tests.txt Deleted old residuals, ready to merge with ci branch * Added upload artifact action (#6) * Another test for CI * Organized CI actions. * Added both the text file and the original results as artifacts * Added more aesthetic changes suggested by Matthew (#9) * Added more changes suggested by Matthew * Added proper management of __init__.py files (#11) * Another test for CI * Organized CI actions. * Added both the text file and the original results as artifacts * Added more changes suggested by matthew * Added method to handle changes to __init__.py files * Fixed error in main.yml file * Fixing another error in yaml file * Fixing scope error in yaml * Updated changed-files 24 -> 24.1 * Attempt 1 * Attempt 2 * Attempt 3 * Worked. Fixed typo... Now reordering. * Made a change in init file, let's see if it detects * Fixed bash code * Checking for something suspicious * Checking for something suspicious * Fixing something suspicious * Fixed? * Fixed?? * Test with only __init__ file * Final commit before merging * Improved Runtime by removing Washington, Brooklyn and Rochester backends. (#13) * Remove usage of Washington, Brooklyn and Rockester backends due to slow runtime. * What if there are no changes? * Handle no files in a healthy way * No changes works! Going back to adding changes. * Created custom action to test each specific benchmark (#15) * Try customized action * Added custom acrtion to workflow. * Fixed typo in workflow. * Modified action location * Modified action location 2 * Modified action location 3 * Modified action location 4 * Fixed path for testing * Fixed typo in line 22 of action. * Housekeeping, and red-added exclusions. * Final commit, custom action is ready to be merged. * Final fixes before merging (#17) * Final fixes before merging * Added modifications to CONTRIBUTING.md * Added last modification to CONTRIBUTING.md * Delete test.py for final version
This adds tests for qiskit basis passes. Currently it just uses circuits from
benchmarks/misc
which may not involve much translation.