Skip to content

Conversation

@jzaia18
Copy link
Contributor

@jzaia18 jzaia18 commented Nov 14, 2025

Context:
Initial StatePreps being automatically handled without applying the gate on various simulators is not a documented feature.

Description of the Change:
Updates StatePrep docs to explicitly mention that some simulators may remove and automatically handle an initial StatePrep.

A separate PR to Catalyst will also stop this behaviour for null.qubit specifically.

Benefits:

Possible Drawbacks:

Related GitHub Issues:
#8650

See also PennyLaneAI/catalyst#2195

@jzaia18 jzaia18 self-assigned this Nov 14, 2025
@jzaia18 jzaia18 added the documentation 📘 Documentation changes and updates label Nov 14, 2025
@github-actions
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.

@jzaia18 jzaia18 requested a review from isaacdevlugt November 14, 2025 16:15
@codecov
Copy link

codecov bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.42%. Comparing base (fba4729) to head (265c119).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8651   +/-   ##
=======================================
  Coverage   99.42%   99.42%           
=======================================
  Files         587      587           
  Lines       61969    61969           
=======================================
  Hits        61613    61613           
  Misses        356      356           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 📘 Documentation changes and updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants