Skip to content

Conversation

@Thom747
Copy link
Contributor

@Thom747 Thom747 commented Jan 26, 2026

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.

EprMeasBasis.X: (24, 0, 0),
EprMeasBasis.Y: (8, 24, 24),
EprMeasBasis.Z: (0, 0, 0),
# FIXME: Check with Bart what the correct decompositions are for the negative bases.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bvdvecht Could you provide me with the correct decompositions?

EprMeasBasis.X: (24, 24, 8),
EprMeasBasis.Y: (0, 8, 0),
EprMeasBasis.Z: (0, 0, 0),
# FIXME: Check with Bart what the correct decompositions are for the negative bases.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bvdvecht Could you provide me with the correct decompositions?

qubit_reg: operand.Register,
params: EntRequestParams,
) -> None:
# FIXME: Figure out with Bart what the versions of these corrections is for YZY and ZXZ.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bvdvecht Could you provide me with the correct decompositions?

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.

1 participant