Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Fix error reporting from custom transpilation passes #57

Merged
merged 5 commits into from
Apr 24, 2023

Conversation

airwoodix
Copy link
Contributor

@airwoodix airwoodix commented Apr 20, 2023

Summary

Wrap the transformation functions of the custom transpilation passes such that any error is reported as TranspilerError (a subclass of QiskitError).

This increases the compliance of the custom transpilation passes with the rest of the Qiskit infrastructure, in particular the legacy qiskit.opflow tools.

Details and comments

  • the legacy qiskit.opflow.CircuitSampler tool is able to deal with failures of the transpiler for unbound parametric circuits by delaying transpilation after the parameters are bound. This is unfortunately not the case for the new BackendSampler.

@airwoodix airwoodix self-assigned this Apr 20, 2023
@github-actions
Copy link

github-actions bot commented Apr 20, 2023

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1284 1265 99% 96% 🟢

New Files

File Coverage Status
qiskit_aqt_provider/utils.py 100% 🟢
test/test_primitives.py 100% 🟢
TOTAL 100% 🟢

Modified Files

File Coverage Status
qiskit_aqt_provider/transpiler_plugin.py 100% 🟢
TOTAL 100% 🟢

updated for commit: b54f8bf by action🐍

@airwoodix airwoodix merged commit d3512da into master Apr 24, 2023
@airwoodix airwoodix deleted the test-circuit-sampling branch April 24, 2023 07:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants