Skip to content

Track instruction origin#2933

Merged
msoeken merged 2 commits intofeature/qrefrom
msoeken/isa-source
Feb 13, 2026
Merged

Track instruction origin#2933
msoeken merged 2 commits intofeature/qrefrom
msoeken/isa-source

Conversation

@msoeken
Copy link
Copy Markdown
Member

@msoeken msoeken commented Feb 10, 2026

The main change of this PR is the introduction of a provenance graph that keeps track of how instructions in ISAs are build from other instructions from other ISAs down to the architecture's ISA. We can then build an InstructionSource (also a graph) that describes the dependencies with respect to optimal resource estimation results such that we can track which instructions were used to estimate the trace and what properties they have.

Other changes include:

  • A function instruction_name to turn an instruction ID into a name, e.g. instruction_name(CNOT) == "CNOT", as well as using them in __str__ (Display) implementations for ISAs and traces.
  • Prefixing some Rust bindings with an underscore when exported to the Python package to emphasize that they are private and are not exported by the qsharp.qre module.

@msoeken msoeken merged commit 289a181 into feature/qre Feb 13, 2026
15 checks passed
@msoeken msoeken deleted the msoeken/isa-source branch February 13, 2026 17:08
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.

2 participants