Skip to content

Bravyi-Kitaev#461

Open
danclaudino wants to merge 3 commits into
eclipse-xacc:masterfrom
danclaudino:bravyi_kitaev
Open

Bravyi-Kitaev#461
danclaudino wants to merge 3 commits into
eclipse-xacc:masterfrom
danclaudino:bravyi_kitaev

Conversation

@danclaudino
Copy link
Copy Markdown
Contributor

This PR:

  • Implements Bravyi-Kitaev ObservableTransform (resolves Implement Fermion-to-Spin Transforms #375)
  • Implements Hartree-Fock Circuit
  • Updates various classes to be able to use the BK transform (defaults to JW)
  • Fixes a minor bug in FermionOperator::normalize() and PauliOperator::normalize()
  • Removes (temporarily) some operator pools due to unphysical results in some cases

Signed-off-by: Daniel Claudino <6d3@ornl.gov>
Signed-off-by: Daniel Claudino <6d3@ornl.gov>
@gitpod-io
Copy link
Copy Markdown

gitpod-io Bot commented Jun 16, 2021

std::shared_ptr<Observable>
JW::transform(std::shared_ptr<Observable> Hptr_input) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why did you delete this preprocessing part - could be that the Observable is PySCF or something like that - it would have a fermionic structure, but will not pass the check that it is a FermionOperator.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think I did this because the algorithms in which we use the transforms have some pre-processing of sorts. More generally, I decided to put it back in case of a new application that doesn't rely on the already implemented algorithms.

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.

Implement Fermion-to-Spin Transforms

2 participants