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

Deprecate various unused pauli utils #5057

Merged
merged 8 commits into from
Jan 15, 2024
Merged

Conversation

timmysilv
Copy link
Contributor

@timmysilv timmysilv commented Jan 12, 2024

Context:
Much of the pauli module has been sitting stale, and is now being deprecated.

Description of the Change:

  • Deprecated pauli_mult_with_phase, pauli_mult, _pauli_mult, _binary_matrix and _get_pauli_map from the pauli module
  • Fixed some places that are still using ps1 * ps2 instead of ps1 @ ps2. They don't seem to be caught by tests because they are used at test collection time, and pytest only catches ones at test run-time

Benefits:
cleaning up pennylane!

[sc-38632]

doc/releases/changelog-dev.md Outdated Show resolved Hide resolved
doc/releases/changelog-dev.md Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c01cb4b) 99.67% compared to head (bd71931) 99.65%.
Report is 11 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5057      +/-   ##
==========================================
- Coverage   99.67%   99.65%   -0.02%     
==========================================
  Files         394      394              
  Lines       35670    35395     -275     
==========================================
- Hits        35554    35274     -280     
- Misses        116      121       +5     

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

@timmysilv timmysilv requested review from Jaybsoni, trbromley and a team January 12, 2024 21:36
Copy link
Contributor

@trbromley trbromley left a comment

Choose a reason for hiding this comment

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

Thanks @timmysilv!

doc/development/deprecations.rst Outdated Show resolved Hide resolved
@Qottmann
Copy link
Contributor

This is great!

# Conflicts:
#	doc/development/deprecations.rst
#	doc/releases/changelog-dev.md
@timmysilv timmysilv enabled auto-merge (squash) January 15, 2024 18:52
@timmysilv timmysilv merged commit f22e78b into master Jan 15, 2024
35 checks passed
@timmysilv timmysilv deleted the deprecate-pauli-utils branch January 15, 2024 19:10
mudit2812 pushed a commit that referenced this pull request Jan 19, 2024
**Context:**
Much of the `pauli` module has been sitting stale, and is now being
deprecated.

**Description of the Change:**
- Deprecated `pauli_mult_with_phase`, `pauli_mult`, `_pauli_mult`,
`_binary_matrix` and `_get_pauli_map` from the `pauli` module
- Fixed some places that are still using `ps1 * ps2` instead of `ps1 @
ps2`. They don't seem to be caught by tests because they are used at
test collection time, and pytest only catches ones at test run-time

**Benefits:**
cleaning up pennylane!

[sc-38632]
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.

4 participants