Qiskit / documentation

The documentation content home for https://docs.quantum.ibm.com.
https://docs.quantum.ibm.com
Apache License 2.0
38 stars 69 forks source link

Undefined variable in `docs/guides/noise-learning.ipynb` #1898

Closed github-actions[bot] closed 1 month ago

github-actions[bot] commented 1 month ago

Today's scheduled test of notebooks that submit jobs failed. Please check the logs.

[!NOTE] This issue was created by a GitHub action.

frankharkins commented 1 month ago

This looks like a genuine problem in the "noise learning" notebook. I've renamed the issue to reflect this.

Cell:

# Specify options via a dictionary
options_dict = {'resilience_level':2,
                'resilience':{'layer_noise_model':result}}

estimator = EstimatorV2(mode=backend, options=options_dict)

Traceback:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[6], line 3
      1 # Specify options via a dictionary
      2 options_dict = {'resilience_level':2,
----> 3                 'resilience':{'layer_noise_model':result}}
      5 estimator = EstimatorV2(mode=backend, options=options_dict)

NameError: name 'result' is not defined

I think result should be noise_model but need @kaelynj or @SamFerracin to confirm.

SamFerracin commented 1 month ago

Thanks, @frankharkins! I opened a PR to fix this, but I don't think I have the right permissions to make the tests pass or merge