Add an option to build a PauliSum from a Sympy Boolean expression#4282
Merged
Conversation
Contributor
Author
|
@balopat This is one of the smaller PRs you suggested. |
balopat
suggested changes
Jul 9, 2021
Contributor
balopat
left a comment
There was a problem hiding this comment.
LGTM with a little nit + it would be nice to add a little explanation in our docs/operators_and_observables.ipynb
Co-authored-by: Balint Pato <balopat@users.noreply.github.com>
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Contributor
|
Sorry for the linter checks - I am reverting that change. |
balopat
reviewed
Jul 9, 2021
| "id": "ba00a12b9fbd" | ||
| }, | ||
| "source": [ | ||
| "A Pauli sum can also be constructed from a `Sympy` Boolean expression:" |
Contributor
There was a problem hiding this comment.
Add in the reference here to the paper.
Contributor
Author
|
@balopat |
Contributor
|
Automerge cancelled: A required status check is not present. Missing statuses: ['Format check'] |
Contributor
|
Automerge cancelled: A required status check is not present. Missing statuses: ['Format check'] |
CirqBot
pushed a commit
that referenced
this pull request
Aug 6, 2021
Following #4282, the present PR would like to add a gate that allows computing the Hamiltonian from a Boolean expression. Note that while the decomposition is somewhat efficient, more optimizations are possible and planned in a follow-up PR.
rht
pushed a commit
to rht/Cirq
that referenced
this pull request
May 1, 2023
…antumlib#4282) As part of the the review quantumlib#3989 we could use the ability to build a PauliSum from a Boolean expression. This PR makes available that function (smaller change).
rht
pushed a commit
to rht/Cirq
that referenced
this pull request
May 1, 2023
Following quantumlib#4282, the present PR would like to add a gate that allows computing the Hamiltonian from a Boolean expression. Note that while the decomposition is somewhat efficient, more optimizations are possible and planned in a follow-up PR.
harry-phasecraft
pushed a commit
to PhaseCraft/Cirq
that referenced
this pull request
Oct 31, 2024
…antumlib#4282) As part of the the review quantumlib#3989 we could use the ability to build a PauliSum from a Boolean expression. This PR makes available that function (smaller change).
harry-phasecraft
pushed a commit
to PhaseCraft/Cirq
that referenced
this pull request
Oct 31, 2024
Following quantumlib#4282, the present PR would like to add a gate that allows computing the Hamiltonian from a Boolean expression. Note that while the decomposition is somewhat efficient, more optimizations are possible and planned in a follow-up PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As part of the the review #3989 we could use the ability to build a PauliSum from a Boolean expression. This PR makes available that function (smaller change).