Skip to content

Conversation

@dstrain115
Copy link
Collaborator

  • Currently, serialization fails if more than 1 qubit is given.

- Currently, serialization fails if more than 1 qubit is given.
@github-actions github-actions bot added the size: S 10< lines changed <50 label Jul 17, 2025
@codecov
Copy link

codecov bot commented Jul 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.68%. Comparing base (731f1bf) to head (33188d9).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7502   +/-   ##
=======================================
  Coverage   98.68%   98.68%           
=======================================
  Files        1091     1091           
  Lines       96863    96948   +85     
=======================================
+ Hits        95589    95673   +84     
- Misses       1274     1275    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dstrain115 dstrain115 marked this pull request as ready for review July 17, 2025 18:52
@dstrain115 dstrain115 requested review from a team, verult, vtomole and wcourtney as code owners July 17, 2025 18:52
op = gate(*qubits)
elif which_gate_type == 'noisechannel':
which_channel_type = operation_proto.noisechannel.WhichOneof('channel_value')
print('dingdong')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please clean up debug prints here and below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed.

Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

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

LGTM with debugging printouts removed.

operation_proto.noisechannel.depolarizingchannel.probability
)
num_qubits = operation_proto.noisechannel.depolarizingchannel.num_qubits
print(num_qubits)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we check for num_qubits == 0 here or is it OK to let it cause zero division in the DepolarizingChannel?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added.

@dstrain115 dstrain115 added this pull request to the merge queue Jul 18, 2025
Merged via the queue into quantumlib:main with commit cb60bba Jul 18, 2025
35 checks passed
@dstrain115 dstrain115 deleted the add_num_qubits_depolarize branch July 18, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: S 10< lines changed <50

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants