Skip to content

Circuit versioning - #3670

Open
Dima Fedoriaka (fedimser) wants to merge 3 commits into
mainfrom
fedimser/circuit-versions
Open

Circuit versioning#3670
Dima Fedoriaka (fedimser) wants to merge 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.

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.

1 participant