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

New OrbitalRotation decomposition #3171

Merged
merged 7 commits into from
Oct 17, 2022
Merged

Conversation

isaacdevlugt
Copy link
Contributor

@isaacdevlugt isaacdevlugt commented Oct 14, 2022

Context: New decomposition for OrbitalDecomposition.

Description of the Change: Decomposes into SingleExcitation gates instead of more elementary gates (e.g. control gates, Hadamard, etc.)

Benefits:

There are two really big advantages to decomposing down into SingleExcitation gates:

  • default.qubit and lightning natively support SingleExcitation, so the execution will be faster
  • SingleExcitation has a parameter-shift rule defined, so less circuits will be executed to get the gradient

Related GitHub Issues: #3169

@josh146 josh146 removed their request for review October 14, 2022 16:57
@codecov
Copy link

codecov bot commented Oct 14, 2022

Codecov Report

Merging #3171 (ba06956) into master (fdaaeee) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3171      +/-   ##
==========================================
- Coverage   99.69%   99.69%   -0.01%     
==========================================
  Files         274      274              
  Lines       23884    23883       -1     
==========================================
- Hits        23810    23809       -1     
  Misses         74       74              
Impacted Files Coverage Δ
pennylane/ops/qubit/qchem_ops.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@obliviateandsurrender obliviateandsurrender left a comment

Choose a reason for hiding this comment

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

Thanks, @isaacdevlugt! Looking good. Just a couple of minor suggestions, and it will be good to go.

doc/releases/changelog-dev.md Outdated Show resolved Hide resolved
tests/ops/qubit/test_qchem_ops.py Outdated Show resolved Hide resolved
isaacdevlugt and others added 2 commits October 17, 2022 13:45
Co-authored-by: Utkarsh <utkarshazad98@gmail.com>
@isaacdevlugt isaacdevlugt merged commit 5cfcb20 into master Oct 17, 2022
@isaacdevlugt isaacdevlugt deleted the orbital_rot_decomposition branch October 17, 2022 19:06
@cvjjm
Copy link
Contributor

cvjjm commented Nov 2, 2022

Thanks for implementing this!

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