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

Remove non-native observables from TOML files #659

Merged
merged 7 commits into from
Mar 25, 2024

Conversation

maliasadi
Copy link
Member

This PR removes non-native observables (those obs which are not supported natively by the device) from TOML files.

Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit .github/CHANGELOG.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.47%. Comparing base (1dae57c) to head (cc143f9).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #659      +/-   ##
==========================================
+ Coverage   98.25%   98.47%   +0.21%     
==========================================
  Files         172       63     -109     
  Lines       24709     9155   -15554     
==========================================
- Hits        24277     9015   -15262     
+ Misses        432      140     -292     

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

Copy link
Contributor

@vincentmr vincentmr left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just a tiny thing, we could move Identity up the list with the other Hermitian gates and use the canonical order: gates, Hermitian, Hamiltonian, SparseHamiltonian. I mean canonical in the Lightning sense, that's usually the order in which they are listed.

@maliasadi maliasadi added the ci:build_wheels Activate wheel building. label Mar 22, 2024
Copy link
Contributor

@erick-xanadu erick-xanadu left a comment

Choose a reason for hiding this comment

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

Thanks for bringing this to attention.

@sergei-mironov
Copy link
Contributor

sergei-mironov commented Mar 22, 2024

@maliasadi just to double-check: are the new versions of toml configs compatible with the current Catalyst validation?

@maliasadi maliasadi changed the base branch from master to toml-spec-schema-2 March 25, 2024 12:49
@maliasadi maliasadi merged commit fae6a56 into toml-spec-schema-2 Mar 25, 2024
2 checks passed
@maliasadi maliasadi deleted the maa/rm-projector-toml branch March 25, 2024 13:39
sergei-mironov pushed a commit to PennyLaneAI/catalyst that referenced this pull request Apr 5, 2024
**Context:** Quantum device config now contains only native observables
(it means, handled by C-API), while the `device.observables` may contain
additional non-native observables supported by the device Python API.

**Description of the Change:** By this PR we relax the observables
validation.

**Benefits:** Fix support toml schema 2 configs.

**Possible Drawbacks:** 

**Related GitHub Issues:**
* PennyLaneAI/pennylane-lightning#659
* PennyLaneAI/pennylane-lightning#642

---------

Co-authored-by: erick-xanadu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:build_wheels Activate wheel building.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants