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

Support the construction of bosonic operators #6518

Merged
merged 103 commits into from
Nov 22, 2024
Merged

Conversation

austingmhuang
Copy link
Contributor

@austingmhuang austingmhuang commented Nov 5, 2024

Context:
We need BoseWords and BoseSentences to help us build vibrational hamiltonians.

Description of the Change:
Add BoseWords and BoseSentences

Benefits:

Possible Drawbacks:

Related GitHub Issues:
[sc-72640]

Copy link
Contributor

github-actions bot commented Nov 5, 2024

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

@ddhawan11 ddhawan11 left a comment

Choose a reason for hiding this comment

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

Thanks @austingmhuang. A couple of minor comments from me.

@austingmhuang austingmhuang requested a review from soranjh November 7, 2024 22:16
Copy link
Contributor

@soranjh soranjh left a comment

Choose a reason for hiding this comment

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

Thanks @austingmhuang, left some comments. The test file seems to be incomplete.

austingmhuang and others added 12 commits November 8, 2024 16:45
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
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.

Looks good, just some optional comments.

austingmhuang and others added 2 commits November 21, 2024 10:58
Co-authored-by: Utkarsh <utkarshazad98@gmail.com>
Copy link
Contributor

@ddhawan11 ddhawan11 left a comment

Choose a reason for hiding this comment

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

Good to go from my side, good work @austingmhuang

Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
@austingmhuang austingmhuang added the merge-ready ✔️ All tests pass and the PR is ready to be merged. label Nov 21, 2024
Copy link
Contributor

@DSGuala DSGuala left a comment

Choose a reason for hiding this comment

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

Nice work! Looks good overall.

I'm wondering whether qml.qchem.BoseWord should be qml.bose.BoseWord for consistency with qml.fermi.FermiWord. Not a blocker.

I had some trouble with arithmetic, but the tests are passing, so maybe it's something on my end?

@austingmhuang
Copy link
Contributor Author

austingmhuang commented Nov 21, 2024

I'm wondering whether qml.qchem.BoseWord should be qml.bose.BoseWord for consistency with qml.fermi.FermiWord. Not a blocker.

Hmmm.... this is kind of a good point actually. @soranjh I think it is fine in qchem personally, but do you think this should be changed?

@soranjh
Copy link
Contributor

soranjh commented Nov 21, 2024

I'm wondering whether qml.qchem.BoseWord should be qml.bose.BoseWord for consistency with qml.fermi.FermiWord. Not a blocker.

Hmmm.... this is kind of a good point actually. @soranjh I think it is fine in qchem personally, but do you think this should be changed?

Yes, what @DSGuala suggested for creating a bose folder makes sense. We can add a proper qml_bose.rst file in doc/code, in a separate PR when the mapping PRs are merged.

Copy link
Contributor

@DSGuala DSGuala 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 go! 💪

@austingmhuang austingmhuang enabled auto-merge (squash) November 22, 2024 14:23
@austingmhuang austingmhuang merged commit 9c1292d into master Nov 22, 2024
45 checks passed
@austingmhuang austingmhuang deleted the bose_operators branch November 22, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-ready ✔️ All tests pass and the PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants