Fixed expectation_computational_basis_state - #1194
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
…rmal-ordered operator
6641a80 to
9ae2967
Compare
|
Regarding the current failures in CI: I'm waiting until I can merge #1204 and then will run CI on this PR again. |
|
@S-Erik There remained some trivial code formatting issues. In order to expedite things, I took the liberty of pushing a fix to your branch – I hope you don't mind. The result worked and this PR is now in the merge queue. I hope the push to your branch does not cause you any problems on your end. Thanks again for this contribution. |
Trying to fix
expectation_computational_basis_state. The implemented fix was proposed in issue #515.I also added a test that covers the new exception that is raised when the provided operator is normal ordered.
Changes I made:
j-loop:ValueErrorexception is raised if the provided operator is not normal-ordered: