Skip to content

Update the HI-VQE Chemistry docs for the 4.0.0 function - #5758

Merged
abbycross merged 4 commits into
Qiskit:mainfrom
QuNovaComputing:hivqe-4.0.0
Oct 27, 2026
Merged

abbycross merged 4 commits into
Qiskit:mainfrom
QuNovaComputing:hivqe-4.0.0

Conversation

@seihyun-jeong

Copy link
Copy Markdown
Contributor

In 4.0.0 of qunova/hivqe-chemistry, the result no longer includes "states" or "eigenvector". They are saved in an HDF5 results file, together with "final_energy", "final_energy_variance" and "energy_history", and the result names that file in "results_file_name".

  • API reference: update the output table.
  • Guide: show the 4.0.0 result, explain the results file, and add examples that download it with QiskitServerless and read it with h5py. Run the licensing example on the reader's own backend, and add a Changelog section.
  • Tutorial: install h5py, and download and read the results file for each calculation.

Checked by running the guide against the deployed 4.0.0 function.

In 4.0.0 the result no longer carries "states" or "eigenvector". They
are written to an HDF5 results file instead, alongside "final_energy",
"final_energy_variance" and "energy_history". The result names that
file in "results_file_name".

- API reference: drop "states" and "eigenvector" from the result table,
  add "results_file_name", and point "energy_variance" at the states in
  the results file.
- Guide: show the 4.0.0 result, list what the results file holds, and
  add examples that create a QiskitServerless client, download the file
  and read it with h5py. Add a Changelog section that starts at 4.0.0.
- Tutorial: install h5py, and download and read the results file for
  each calculation.

Co-authored-by: Shane McFarthing <shane.mcfarthing@gmail.com>
Co-authored-by: Rowan Pellow-Jarman <rowanpellow@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guide downloaded the results file with
serverless.file_download(results_file_name, function) and then opened
results_file_name. That fails with FileNotFoundError: without
target_name, qiskit-serverless saves the file as
downloaded_<8 hex>_<name> (qiskit_serverless/core/files.py, 0.36.0).
The comment above the call, "saved ... under the same name", was wrong
for the same reason.

Pass target_name=results_file_name so the file lands under the name the
next line opens, and make the comment say what the call does.

The tutorial still asks for the path by hand and is left alone for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The licensed-use example passed backend_name="ibm_torino". Current
qiskit-ibm-catalog checks backend access before it submits a job, so on
an instance without ibm_torino the example stops with "Backend
'ibm_torino' is not available or you do not have access to it". It now
passes backend_name, as the rest of the guide does, with a comment
giving the 14 qubits that H2O in STO-3G needs (7 orbitals).

The example also built its catalog from token and instance
placeholders, unlike "Get started", which uses the saved account. It
now does the same: QiskitFunctionsCatalog(channel="ibm_quantum_platform").

Checked against production 4.0.0 from a test instance. With a placeholder
licence token, the job reaches the function and is refused with
TokenNotFoundError (1201), as expected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@CLAassistant

CLAassistant commented Oct 7, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@qiskit-bot

Copy link
Copy Markdown
Contributor

Thanks for contributing to Qiskit documentation!

Before your PR can be merged, it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. Thanks! 🙌

One or more of the following people are relevant to this code:

Seihyun Jeong (seihyun-jeong) added a commit to QuNovaComputing/qiskit-documentation that referenced this pull request Oct 7, 2026
Step 3 listed five checks. IBM's Lint job runs more, including
check:fmt, check:orphan-pages, check:stale-images and the page and
KaTeX render checks. All of them passed on hivqe-4.0.0 before CI was
approved on Qiskit#5758.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@HuangJunye Junye Huang (HuangJunye) left a comment

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.

Looks good to me. Thanks for updating the documentation.

@HuangJunye

Copy link
Copy Markdown
Contributor

@Qiskit/docs-content-team Can you please review and approve the PR?

Comment thread docs/guides/qunova-chemistry.ipynb
Comment thread docs/guides/qunova-chemistry.ipynb
Comment thread docs/tutorials/qunova-hivqe.ipynb
abbycross pushed a commit to abbycross/qiskit-documentation that referenced this pull request Oct 26, 2026
- Step 7: what happens after the IBM PR is opened. A first-time author's
  CI waits for a maintainer to approve it, so Lint and Execute notebooks
  sit at "Expected — Waiting for status to be reported". Says whom to
  ask and what each check should do.
- Step 8: when syncing our main with IBM's, choose Update branch, never
  Discard commits. Our main now carries fork-only commits that IBM does
  not have. Discarding was fine once, when every extra commit was already
  upstream under another hash.
- Step 2: run any notebook cell whose code you change against the
  deployed function. Both bugs fixed today read correctly and failed at
  run time, and nothing else executes these notebooks.
- Status: 4.0.0 is at Qiskit#5758 after Qedma#6 was approved,
  with the two fixes from Qedma#8 and Qedma#9. 5.0.x should wait for a function
  release that returns 4630.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@abbycross

Copy link
Copy Markdown
Collaborator

Hi Seihyun Jeong (@seihyun-jeong) and thanks for your updates. I made some edits that I could not write directly to your branch, and so I opened a fork. Please approve and merge them here. Thanks!

@seihyun-jeong

Copy link
Copy Markdown
Contributor Author

abbycross Hello abbycross, I approved and merged the fork. Please check and proceed with the next steps.

@abbycross

Copy link
Copy Markdown
Collaborator

Thank you Seihyun Jeong (@seihyun-jeong)! To fix the lint check, can you please update your branch by pulling from main? I think that should clear it.

@abbycross
abbycross added this pull request to the merge queue Oct 27, 2026
Merged via the queue into Qiskit:main with commit 5aa1ed3 Oct 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants