Skip to content

Create QRE traces from cirq circuits#3060

Merged
msoeken merged 16 commits intofeature/qrefrom
msoeken/cirq-interop
Mar 27, 2026
Merged

Create QRE traces from cirq circuits#3060
msoeken merged 16 commits intofeature/qrefrom
msoeken/cirq-interop

Conversation

@msoeken
Copy link
Copy Markdown
Member

@msoeken msoeken commented Mar 25, 2026

This adds support to generate traces from cirq circuits. These traces represent the original circuit and do not simply represent the gate counts. They monkey patch a _to_trace method to cirq gates and users of QRE can add a _to_trace method to their custom operations and gates. If no such method is found, the operation's or gate's decomposition method will be called to walk the circuit tree.

The PR has some other small fixes:

  • extending the gate-based architecture gate set
  • minor fixes to Trace Python API
  • minor improvements on how to create estimation table results (with extended info such as source ISA tree) from unannotated estimation results

@msoeken msoeken marked this pull request as draft March 25, 2026 18:14
@msoeken msoeken marked this pull request as ready for review March 26, 2026 13:06
@msoeken msoeken merged commit 0b92123 into feature/qre Mar 27, 2026
9 checks passed
@msoeken msoeken deleted the msoeken/cirq-interop branch March 27, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants