This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 376
Conversation
This file contains 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
Cvar isolated fix
…ua-grad into cvar-isolated
BryceFuller
requested review from
levbishop,
manoelmarques and
woodsp-ibm
as code owners
October 13, 2020 22:18
woodsp-ibm
reviewed
Oct 15, 2020
woodsp-ibm
reviewed
Oct 15, 2020
Cryoris
added
the
Changelog: New Feature
Include in the Added section of the changelog
label
Oct 15, 2020
Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
woodsp-ibm
approved these changes
Oct 15, 2020
mtreinish
pushed a commit
to mtreinish/qiskit-core
that referenced
this pull request
Nov 20, 2020
* clean push w/o huge history * fix __new__ w/o changing StateFn.__new__ * update cvar statefn to latest verrsion * fix lint * alpha must be in [0,1] * add check that operators must be diagonal * cvar not used statefn.__new__ due to alpha * add small test file * add cvar expectation * fix spsa in case delta_obj=0 * rename cvar statefn to cvar measurement * add cvar expectation * wrote a release note for cvar and added comments to CVaRExpectation * changing docstring to try and prevent sphynx errors * Update releasenotes/notes/cvar-expectation-bbc2ccff95132b35.yaml * add more tests and fix coeff * allow ``add`` Co-authored-by: Cryoris <jules.gacon@googlemail.com> Co-authored-by: Julien Gacon <jul@zurich.ibm.com> Co-authored-by: Julien Gacon <gaconju@gmail.com> Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
manoelmarques
pushed a commit
to manoelmarques/qiskit-terra
that referenced
this pull request
Dec 2, 2020
* clean push w/o huge history * fix __new__ w/o changing StateFn.__new__ * update cvar statefn to latest verrsion * fix lint * alpha must be in [0,1] * add check that operators must be diagonal * cvar not used statefn.__new__ due to alpha * add small test file * add cvar expectation * fix spsa in case delta_obj=0 * rename cvar statefn to cvar measurement * add cvar expectation * wrote a release note for cvar and added comments to CVaRExpectation * changing docstring to try and prevent sphynx errors * Update releasenotes/notes/cvar-expectation-bbc2ccff95132b35.yaml * add more tests and fix coeff * allow ``add`` Co-authored-by: Cryoris <jules.gacon@googlemail.com> Co-authored-by: Julien Gacon <jul@zurich.ibm.com> Co-authored-by: Julien Gacon <gaconju@gmail.com> Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
manoelmarques
pushed a commit
to manoelmarques/qiskit-terra
that referenced
this pull request
Dec 7, 2020
* clean push w/o huge history * fix __new__ w/o changing StateFn.__new__ * update cvar statefn to latest verrsion * fix lint * alpha must be in [0,1] * add check that operators must be diagonal * cvar not used statefn.__new__ due to alpha * add small test file * add cvar expectation * fix spsa in case delta_obj=0 * rename cvar statefn to cvar measurement * add cvar expectation * wrote a release note for cvar and added comments to CVaRExpectation * changing docstring to try and prevent sphynx errors * Update releasenotes/notes/cvar-expectation-bbc2ccff95132b35.yaml * add more tests and fix coeff * allow ``add`` Co-authored-by: Cryoris <jules.gacon@googlemail.com> Co-authored-by: Julien Gacon <jul@zurich.ibm.com> Co-authored-by: Julien Gacon <gaconju@gmail.com> Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
This PR adds a new StateFn object:
CVaRMeasurement
which is a subclass ofOperatorStateFn
and also modifies other opflow class methods to accommodate this new class.Details and comments
The
CVaRMeasurement
object is structurally very similar to anOperatorStateFn
object as it has aprimitive
attribute which acceptsOperatorBase
objects. UnlikeOperatorStateFn
, this object has a parameteralpha
in [0,1] which is used when computing the CVaR. For more details on CVaR in the context of quantum computing, see: https://arxiv.org/abs/1907.04769.