Skip to content

Add cext slots added since last update#15838

Merged
jakelishman merged 2 commits intoQiskit:mainfrom
jakelishman:c/missing-slots
Mar 19, 2026
Merged

Add cext slots added since last update#15838
jakelishman merged 2 commits intoQiskit:mainfrom
jakelishman:c/missing-slots

Conversation

@jakelishman
Copy link
Copy Markdown
Member

While gh-15778 is not yet merged, we don't have CI enforcement that the vtable slots are always completely up-to-date. Several PRs adding new C API functions merged between the merge-base of gh-157611 and main at its time of merge (and subsequently). This PR uses the machinery in gh-15778 to bring the slots completely up-to-date.

Summary

Details and comments

The only other C API PR I'm aware of for 2.4 is #15361 - if that merges, it should include a slots update of its own.

Footnotes

  1. 888c877: Add C API vtable to pyext

While Qiskitgh-15778 is not yet merged, we don't have CI enforcement that the
vtable slots are always completely up-to-date.  Several PRs adding new C
API functions merged between the merge-base of Qiskitgh-15761[^1] and `main`
at its time of merge (and subsequently).  This PR uses the machinery in
Qiskitgh-15778 to bring the slots completely up-to-date.

[^1]: 888c877: Add C API vtable to `pyext`
@jakelishman jakelishman added this to the 2.4.0 milestone Mar 19, 2026
@jakelishman jakelishman requested a review from a team as a code owner March 19, 2026 14:47
@jakelishman jakelishman added Changelog: None Do not include in the GitHub Release changelog. C API Related to the C API labels Mar 19, 2026
@qiskit-bot
Copy link
Copy Markdown
Collaborator

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

  • @Qiskit/terra-core

mtreinish
mtreinish previously approved these changes Mar 19, 2026
Copy link
Copy Markdown
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

This lgtm, we should definitely merge the linter pr before rc1 to make sure that nothing slips in by accident.

#[cfg(feature = "addr")]
use qiskit_cext::circuit::*;

#[rustfmt::skip] // Don't wrap long lines so everything stays on one line for counting.
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.

This skips all rustfmt rules for the annotated scope right? I couldn't find a way to just set a custom line length so I guess this is fine. Hopefully the formatting doesn't get too wonky.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah - some of the register lines are too long right now, but no so long that rustfmt gives up on its own (like some of the transpiler-pass lines)

@mtreinish mtreinish enabled auto-merge March 19, 2026 15:12
@jakelishman jakelishman disabled auto-merge March 19, 2026 15:13
@jakelishman
Copy link
Copy Markdown
Member Author

I've removed this from the merge queue for now, just because I want to check that it's all correct a bit closer to the finalisation time of 2.4.0rc1 rather than opening another fix-up PR. Hopefully nothing should change and then I'll enqueue it.

@jakelishman
Copy link
Copy Markdown
Member Author

Ok I just checked locally and this is up to date and accounts for all slots.

@jakelishman jakelishman added this pull request to the merge queue Mar 19, 2026
Merged via the queue into Qiskit:main with commit 517d715 Mar 19, 2026
25 checks passed
@jakelishman jakelishman deleted the c/missing-slots branch March 19, 2026 18:14
@github-project-automation github-project-automation bot moved this from Ready to Done in Qiskit 2.4 Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C API Related to the C API Changelog: None Do not include in the GitHub Release changelog.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants