Skip to content

Expand C install guide#5327

Merged
abbycross merged 21 commits into
mainfrom
bd-c-install-guide
Jul 17, 2026
Merged

Expand C install guide#5327
abbycross merged 21 commits into
mainfrom
bd-c-install-guide

Conversation

@beckykd

@beckykd beckykd commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

@beckykd
beckykd marked this pull request as ready for review July 6, 2026 21:58
@beckykd
beckykd requested a review from a team July 6, 2026 21:58
@qiskit-bot

Copy link
Copy Markdown
Contributor

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

@0sophy1

0sophy1 commented Jul 6, 2026

Copy link
Copy Markdown
Member

@beckykd Thank you Becky for this awesome work! If you are OK with, can I trim windows part a little by make some details collapsible?

Comment thread docs/guides/install-c-api.mdx Outdated
Comment thread docs/guides/install-c-api.mdx Outdated
Comment thread docs/guides/install-c-api.mdx Outdated
Comment thread docs/guides/install-c-api.mdx Outdated
Comment thread docs/guides/install-c-api.mdx Outdated
Comment thread docs/guides/install-c-api.mdx Outdated

This section builds the standalone C library, which is only needed if you want to compile and link pure C programs as in the UNIX-like section. In addition to the Step 1 prerequisites, this requires the following tools:

* A Rust compiler: see for example the [guide on installing Qiskit from source](https://github.com/Qiskit/qiskit/blob/main/CONTRIBUTING.md#installing-qiskit-from-source)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note that I was about to recommend pointing to https://quantum.cloud.ibm.com/docs/guides/install-qiskit-source instead, but it doesn't look like it goes into much detail for the Rust compiler part. We might want to consider beefing up the guide to include this? cc: @kaelynj

Comment thread docs/guides/install-c-api.mdx Outdated
Run `pip install qiskit-aer --only-binary=:all:`. If that also fails, use Python 3.12 or skip aer, which is optional
</AccordionItem>
<AccordionItem title="Build runs but import fails with a version error">
Build and runtime Qiskit must share a minor version. Reinstall with `pip install "qiskit~=2.4.2"`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are "Build and runtime Qiskit"?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooh - good catch. Investigating.

@0sophy1 0sophy1 Jul 13, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Qiskit you compile the extension against (build time) and the Qiskit you run it with (runtime) must be the same minor version. If you met the version error, reinstall the exact version you built against — check it with pip show qiskit, then pip install "qiskit==<that-version>".

Comment thread docs/guides/install-c-api.mdx Outdated
Comment thread docs/guides/install-c-api.mdx Outdated

@abbycross abbycross left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a lot of -> that would render better if we replace them all with →

Co-authored-by: abbycross <across@us.ibm.com>
Co-authored-by: abbycross <across@us.ibm.com>
Comment thread docs/guides/install-c-api.mdx Outdated
Run `pip install qiskit-aer --only-binary=:all:`. If that also fails, use Python 3.12 or skip aer, which is optional
</AccordionItem>
<AccordionItem title="Build runs but import fails with a version error">
Build and runtime Qiskit must share a minor version. Reinstall with `pip install "qiskit~=2.4.2"`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Build and runtime Qiskit must share a minor version. Reinstall with `pip install "qiskit~=2.4.2"`
Be sure the the version for compiling (build time) and runtime version are the same minor version. Reinstall with `pip install "qiskit~=2.4.2"`

@abbycross
abbycross enabled auto-merge July 17, 2026 14:52
@abbycross
abbycross added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit 6812649 Jul 17, 2026
5 checks passed
@abbycross
abbycross deleted the bd-c-install-guide branch July 17, 2026 14:58
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.

Qiskit C install guide for windows

4 participants