Skip to content

Circuit versioning - #3670

Merged
Dima Fedoriaka (fedimser) merged 3 commits into
mainfrom
fedimser/circuit-versions
Sep 3, 2026
Merged

Circuit versioning#3670
Dima Fedoriaka (fedimser) merged 3 commits into
mainfrom
fedimser/circuit-versions

Conversation

@fedimser

Copy link
Copy Markdown
Contributor

This PR contains some code for circuit versioning:

  • Check that the QDK extension annot load circuit with version newer than the circuit version that was used to build the extension. This is because circuit format updates are not forward compatible, and rendering newer circuit with older extension can produce wrong picture. For example, if newer version added additional fields, older extension will ignore them.
    • The user will see an error message suggesting to update extension.
    • This only applies to opening .qsc files, and does not affect the "Circuit" codelens.
  • Circuit editor, when saving a circuit, automatically bumps circuit version.
  • Added a test that CIRCUIT_VERSION constant is Rust and Typescript is the same.

@fedimser
Dima Fedoriaka (fedimser) added this pull request to the merge queue Sep 3, 2026
Merged via the queue into main with commit 9a3e40e Sep 3, 2026
15 checks passed
@fedimser
Dima Fedoriaka (fedimser) deleted the fedimser/circuit-versions branch September 3, 2026 16:51
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