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

Operator Arithmetic support to dipole_moment() in qchem #4189

Merged
merged 14 commits into from Jun 13, 2023
Merged

Conversation

Jaybsoni
Copy link
Contributor

@Jaybsoni Jaybsoni commented May 30, 2023

Context:
Now that the new operator arithmetic machinery is integrated with pennylane (via enable_new_opmath()), we want to start making use of it across the codebase, specifically in the qchem module.

As of this PR #4138, the qubit observable function was updated to return an arithmetic operator if active_new_opmath() is True. This function is called implicitly in other functions in qchem, these functions now also return arithmetic operators.

Description of the Change:
Just added tests because this is already supported due to qubit_observable() supporting OP math.

Benefits:
We are slowly moving away from Hamiltonian and adopting the new machinery we have!

@Jaybsoni
Copy link
Contributor Author

[sc-38629]

@codecov
Copy link

codecov bot commented May 30, 2023

Codecov Report

Merging #4189 (c31b20e) into master (1c3581e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4189   +/-   ##
=======================================
  Coverage   99.77%   99.77%           
=======================================
  Files         347      347           
  Lines       31442    31442           
=======================================
  Hits        31371    31371           
  Misses         71       71           

@timmysilv timmysilv added this to the v0.31 milestone Jun 12, 2023
Base automatically changed from observable_hf_op_math to master June 13, 2023 05:44
@Jaybsoni Jaybsoni enabled auto-merge (squash) June 13, 2023 15:56
@Jaybsoni Jaybsoni merged commit 855e9da into master Jun 13, 2023
43 checks passed
@Jaybsoni Jaybsoni deleted the dipole_op_math branch June 13, 2023 18:49
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.

None yet

4 participants