Skip to content

Fix: parity reset for each image , thereby avoiding cFRQI to avoid cross image control gate interference#15

Draft
phantmgx wants to merge 1 commit intomoth-quantum:mainfrom
phantmgx:fix-parity-cfrqi
Draft

Fix: parity reset for each image , thereby avoiding cFRQI to avoid cross image control gate interference#15
phantmgx wants to merge 1 commit intomoth-quantum:mainfrom
phantmgx:fix-parity-cfrqi

Conversation

@phantmgx
Copy link
Copy Markdown

@phantmgx phantmgx commented Jun 4, 2025

Fixes a bug in qpixl_parallel.py where the parity check (pc) was shared across all images during encoding. This caused corrupted outputs when combining images of different shapes, as control gates could affect the wrong image.

This update resets the parity per image and applies control-X gates separately, preventing cross-image interference during encoding.

Fix aligns with what's discussed in issue #14. Reproduction steps are described there.

@danielbultrini
Copy link
Copy Markdown
Contributor

Hi @phantmgx - thanks for your submission! I merged with duspic's fix, so if you would like to update this to work with it, that would be great - right now there is a conflict. If not I will do it myself, but it might take a while.

@danielbultrini danielbultrini self-requested a review June 10, 2025 08:03
@danielbultrini danielbultrini marked this pull request as draft June 10, 2025 08:03
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