IBM-Quantum-Technical-Enablement / quantum-enablement

IBM Quantum Engineering and Enabling Technologies
Apache License 2.0
30 stars 8 forks source link

Add a CVaR notebook #51

Open a-matsuo opened 5 months ago

a-matsuo commented 5 months ago

Summary

This PR adds a CVaR notebook.

Details and comments

coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9468776779

Details


Totals Coverage Status
Change from base Build 9466320186: 0.0%
Covered Lines: 290
Relevant Lines: 290

💛 - Coveralls
miamico commented 5 months ago

Few initial comments:

  1. Most important, this tutorial is meant to reproduce the results in https://arxiv.org/pdf/2312.00733 which show that twirling and over-sampling (by an amount determined by the sampling overhead of PEC) can give mitigated bitstrings and that if we calculate the cost with CVaR we're guaranteed to select the bitstrings with lowest expectation values. Right now the notebook is showcasing only CVaR but we want to include also the estimation of the PEC gamma (can be done using reported device data or code for layer fidelity in qiskit experiments), twirling of the circuit, over-sampling my an amount given by gamma and optimizing the circuit parameters by using CVaR as a cost function with alpha value related to gamma (1/sqrt(gamma)).
  2. Can we formulate CVaR as an observable? This would allow us to use the Estimator rather than the Sampler in the optimization of the circuit parameters. There are better error mitigation techniques available for the Estimator
  3. Switch to V2 of the Runtime Primitives
  4. This is intended to be a utility-scale tutorial. We need to increase the number of qubits to at least 40q (like in the paper)
miamico commented 5 months ago

From our discussion:

coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9610282477

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 9466320186: 0.0%
Covered Lines: 290
Relevant Lines: 290

💛 - Coveralls
coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9668566649

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 9466320186: 0.0%
Covered Lines: 290
Relevant Lines: 290

💛 - Coveralls
coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9668731722

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 9466320186: 0.0%
Covered Lines: 290
Relevant Lines: 290

💛 - Coveralls
coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9668768136

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 9466320186: 0.0%
Covered Lines: 290
Relevant Lines: 290

💛 - Coveralls
coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9758182744

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 9466320186: 0.0%
Covered Lines: 290
Relevant Lines: 290

💛 - Coveralls
coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9771301016

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 9466320186: 0.0%
Covered Lines: 290
Relevant Lines: 290

💛 - Coveralls
coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9777930590

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 9466320186: 0.0%
Covered Lines: 290
Relevant Lines: 290

💛 - Coveralls
coveralls commented 4 months ago

Pull Request Test Coverage Report for Build 10107365887

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 9466320186: 0.0%
Covered Lines: 290
Relevant Lines: 290

💛 - Coveralls