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

Small dynamic_one_shot change to account for Catalyst updates #5888

Merged
merged 8 commits into from
Jun 21, 2024

Conversation

mudit2812
Copy link
Contributor

Context:
Some updates are being made to Catalyst for mid-circuit measurements that are dependent on the changes in this PR.

Description of the Change:

  • Change reference in dynamic_one_shot to catalyst's MidCircuitMeasure.out_classical_tracers to MidCircuitMeasure.mcm_tracer.
  • Change MidMeasureMP.name to be more general. This is because MidCircuitMeasure will soon inherit MidMeasureMP, and this change makes more sense than adding a name property to MidCircuitMeasure.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.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
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, I'm glad to see this is coming in. Thanks @mudit2812 .

@mudit2812 mudit2812 requested a review from dime10 June 20, 2024 19:55
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.

🎉

@mudit2812 mudit2812 enabled auto-merge (squash) June 20, 2024 20:03
@mudit2812 mudit2812 added this to the v0.37 milestone Jun 21, 2024
@mudit2812 mudit2812 enabled auto-merge (squash) June 21, 2024 19:06
Copy link

codecov bot commented Jun 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.66%. Comparing base (2a8019f) to head (b1c151d).
Report is 240 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5888      +/-   ##
==========================================
- Coverage   99.67%   99.66%   -0.01%     
==========================================
  Files         425      425              
  Lines       40753    40457     -296     
==========================================
- Hits        40620    40323     -297     
- Misses        133      134       +1     

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

@mudit2812 mudit2812 merged commit dcf1865 into master Jun 21, 2024
40 checks passed
@mudit2812 mudit2812 deleted the midcircuitmeasure-mcm branch June 21, 2024 19:32
mudit2812 added a commit that referenced this pull request Jul 2, 2024
**Context:**
Some updates are being made to Catalyst for mid-circuit measurements
that are dependent on the changes in this PR.

**Description of the Change:**
* Change reference in `dynamic_one_shot` to catalyst's
`MidCircuitMeasure.out_classical_tracers` to
`MidCircuitMeasure.mcm_tracer`.
* Change `MidMeasureMP.name` to be more general. This is because
`MidCircuitMeasure` will soon inherit `MidMeasureMP`, and this change
makes more sense than adding a `name` property to `MidCircuitMeasure`.

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**
mudit2812 added a commit that referenced this pull request Jul 2, 2024
**Context:**
Some changes were added preemptively in #5888 for changes that were
being added to Catalyst in
PennyLaneAI/catalyst#832, but that PR is not
merged, so the changes from #5888 have to be reverted.

**Description of the Change:**
Reverted changes from #5888 
Some updates to catalyst-`split_non_commuting` caused test failures in
Catalyst in cases where terminal measurements contain mid-circuit
measurements, so `qml.equal` was updated to handle abstract measurement
values.

**Benefits:**

**Possible Drawbacks:**

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