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

Handle confusion matrices in deferred measurements #5851

Merged
merged 27 commits into from
Oct 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
terms
  • Loading branch information
daxfohl committed Oct 8, 2022
commit b36f76c2753fc5842ea72089a05de4a94ec4262d
4 changes: 2 additions & 2 deletions cirq-core/cirq/transformers/measurement_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ class _ConfusionChannel(ops.Gate):
r"""The quantum equivalent of a confusion matrix.

For a classical confusion matrix, the quantum equivalent is a channel that can be calculated
daxfohl marked this conversation as resolved.
Show resolved Hide resolved
by transposing the matrix, square-rooting each term, and forming a Kraus sequence of each term
individually and the rest zeroed out. For example, consider the confusion matrix
by transposing the matrix, taking the square root of each term, and forming a Kraus sequence
of each term individually and the rest zeroed out. For example, consider the confusion matrix

$$
\begin{aligned}
Expand Down