Forward Catalyst subprocess diagnostics to Python - #3080
Open
sengthai wants to merge 6 commits into
Open
Conversation
sengthai
marked this pull request as ready for review
July 30, 2026 14:17
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3080 +/- ##
==========================================
- Coverage 96.92% 96.92% -0.01%
==========================================
Files 166 166
Lines 19133 19138 +5
Branches 1815 1817 +2
==========================================
+ Hits 18545 18549 +4
Misses 429 429
- Partials 159 160 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
Thanks @sengthai. I noticed this is very similar to what does for theinspection module in python_interface. Do you think it make sense to unify them and follow the same approach of making it optional?
|
Contributor
Author
|
@mehrdad2m Thanks and good to know! I made a change and mirror the xdsl's approach b7a204f. And I just realized that qjit has |
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.
Context:
Successful Catalyst subprocess calls capture both output streams but previously returned only
stdout, silently discarding warnings and other diagnostics written to stderr. This prevented warnings from appearing in PennyLane workflows such asqp.specs.We also has
verbosebut this will output like system log which are not necessary for end users.Here, we forward captured Catalyst
stderrwhile preservingstdoutas normal. When Python’s stderr is attached to a terminal, pass--colorto Catalyst so LLVM diagnostics retain their colors. Note that to make this work PL needs to update to pass thestderr_return=True.