Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native quantum control toml #554

Merged
merged 81 commits into from
Mar 13, 2024
Merged

Conversation

sergei-mironov
Copy link
Contributor

@sergei-mironov sergei-mironov commented Feb 27, 2024

By this PR we change the TOML file schema in a way that allows us to represent quantum control at per-gate level.

[sc-57159]
[sc-57172]

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

Attention: Patch coverage is 99.04762% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 99.50%. Comparing base (b818b55) to head (7688473).

❗ Current head 7688473 differs from pull request most recent head a3e871f. Consider uploading reports for the commit a3e871f to get more accurate results

Files Patch % Lines
frontend/catalyst/qjit_device.py 95.55% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #554   +/-   ##
=======================================
  Coverage   99.49%   99.50%           
=======================================
  Files          50       50           
  Lines        8745     8814   +69     
  Branches      624      648   +24     
=======================================
+ Hits         8701     8770   +69     
  Misses         25       25           
  Partials       19       19           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergei-mironov sergei-mironov changed the base branch from main to native-quantum-control-mlir February 27, 2024 14:23
runtime/tests/third_party/dummy_device.toml Outdated Show resolved Hide resolved
runtime/tests/third_party/dummy_device.toml Outdated Show resolved Hide resolved
runtime/tests/third_party/dummy_device.toml Outdated Show resolved Hide resolved
runtime/tests/third_party/dummy_device.toml Outdated Show resolved Hide resolved
Base automatically changed from native-quantum-control-mlir to main February 29, 2024 16:15
@sergei-mironov sergei-mironov force-pushed the native-quantum-control-toml branch from 7409fce to 526635c Compare March 1, 2024 13:12
runtime/tests/third_party/dummy_device.toml Outdated Show resolved Hide resolved
runtime/tests/third_party/dummy_device.toml Outdated Show resolved Hide resolved
runtime/tests/third_party/dummy_device.toml Outdated Show resolved Hide resolved
@sergei-mironov sergei-mironov marked this pull request as ready for review March 5, 2024 12:14
doc/changelog.md Outdated Show resolved Hide resolved
@maliasadi maliasadi self-requested a review March 13, 2024 14:10
frontend/catalyst/utils/runtime.py Show resolved Hide resolved
frontend/catalyst/utils/runtime.py Show resolved Hide resolved
frontend/catalyst/utils/runtime.py Show resolved Hide resolved
frontend/catalyst/utils/runtime.py Outdated Show resolved Hide resolved
Copy link
Contributor

@dime10 dime10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@sergei-mironov sergei-mironov enabled auto-merge (squash) March 13, 2024 19:21
@sergei-mironov sergei-mironov merged commit ac3b90f into main Mar 13, 2024
34 checks passed
@sergei-mironov sergei-mironov deleted the native-quantum-control-toml branch March 13, 2024 19:33
dime10 added a commit that referenced this pull request Mar 15, 2024
sergei-mironov pushed a commit that referenced this pull request Mar 20, 2024
**Context:** Ongoing transition to the schema 2 of the quantum device
toml specification

**Description of the Change:** This is a minor source code clean up PR.
* Remove force addition of the ControlQubitUnitary gate to the set of
QJITDevice operations. This gate is handled by the generic logic in
schema 2 config loader. In schema 1 loader, the sources already have all
the required patches.
* Explicitly list the runtime-supported controlled gates
* Fix missing Projector observable in the lightning-kokkos device config
* Open toml files in binary mode (fixes wheel builds)
* Update some comments and simplify the set calculations.
* Includes Cuda hotfix, to be removed after
#617 is merged

**Benefits:** Cleaner sources

**Possible Drawbacks:** N/A

**Related GitHub Issues:**
#554
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