Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CNOT error model to include 15 error terms #565

Merged
merged 2 commits into from
Mar 10, 2025
Merged

Conversation

Naphann
Copy link
Contributor

@Naphann Naphann commented Mar 9, 2025

The current CNOT error model was incomplete. It can only cover 9 Pauli errors instead of 15, which covers all Pauli channels for 2 qubits.

This closes #563.


This change is Reviewable

@Naphann Naphann requested a review from res6idue March 9, 2025 13:51
@Naphann Naphann marked this pull request as draft March 9, 2025 13:57
@Naphann Naphann marked this pull request as ready for review March 9, 2025 14:59
Copy link
Contributor

@res6idue res6idue left a comment

Choose a reason for hiding this comment

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

Reviewed 7 of 8 files at r1, all commit messages.
Reviewable status: 7 of 8 files reviewed, 1 unresolved discussion


quisp/utils/UtilFunctions.h line 36 at r1 (raw file):

    }
  }
  return (--weights.end())->first;

What is this part doing?

Copy link
Contributor Author

@Naphann Naphann left a comment

Choose a reason for hiding this comment

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

Reviewable status: 7 of 8 files reviewed, 1 unresolved discussion (waiting on @res6idue)


quisp/utils/UtilFunctions.h line 36 at r1 (raw file):

Previously, res6idue (soon) wrote…

What is this part doing?

It is to make sure that there is a return value from sampling.
Since we are traversing the map in forward direction, if somehow the weight summation fails, this will return the last value. Practicaly, it shouldn't happen but it does suppress the compiler warning and more semantically correct.

Copy link
Contributor

@res6idue res6idue left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 8 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Naphann)

@Naphann Naphann merged commit cbbf488 into master Mar 10, 2025
18 checks passed
@Naphann Naphann deleted the fix-cnot-error-model branch March 10, 2025 07:49
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.

Extend two qubit gate error model to cover all Pauli errors
2 participants