Skip to content

Add axes selection to measure and EPR create PMG calls - #94

Merged
bvdvecht merged 20 commits into
QuTech-Delft:developfrom
Thom747:add-axes-to-measure
Mar 3, 2026
Merged

bvdvecht merged 20 commits into
QuTech-Delft:developfrom
Thom747:add-axes-to-measure

Conversation

@Thom747

@Thom747 Thom747 commented Jan 26, 2026 •

Copy link
Copy Markdown
Contributor

This adds the option to select the axes that a particular pre-measurement gate (PMG) should rotate around.
This is needed, as for some platforms (such as NV) it is more performant to rotate around certain axes than others.

For the Measure command, it was not possible to add this functionality to the encoding without breaking backwards-compatiblity.
Thus, for that command two new opcodes have been added that encode the axes in the opcode.
Back-end maintainers should thus add support for these new opcodes, but will remain compatible with any code that does not make use of them.

For EPR Create, the parameter array was extended by two so that the axes could be encoded in there.
This is thus fully backwards-compatible.

This PR also cleans up a bit of the code I was working in.

This is a redo of a previously reverted feature, see also #76.

Comment thread netqasm/sdk/build_epr.py Resolved
Comment thread netqasm/sdk/build_epr.py Resolved
Comment thread netqasm/sdk/builder.py Resolved
@Thom747
Thom747 force-pushed the add-axes-to-measure branch from 73ca02f to 052a049 Compare March 2, 2026 10:49
@Thom747
Thom747 requested a review from bvdvecht March 2, 2026 10:52
@bvdvecht
bvdvecht merged commit 9d3b748 into QuTech-Delft:develop Mar 3, 2026
5 checks passed
@Thom747
Thom747 deleted the add-axes-to-measure branch April 1, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants