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

random_clifford casting qubits to python int #1336

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

scarrazza
Copy link
Member

Related to the bug observed in qiboteam/qibo-client#39. It looks like the qubit numbers are stored as numpy.int64 instead of python int, therefore serialization with json does not work from the qibo-client side. Could you please confirm this patch is acceptable?

Checklist:

  • Reviewers confirm new code works as expected.
  • Tests are passing.
  • Coverage does not decrease.
  • Documentation is updated.

Copy link

codecov bot commented May 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.82%. Comparing base (a61f9f7) to head (bbe925f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1336   +/-   ##
=======================================
  Coverage   99.82%   99.82%           
=======================================
  Files          72       72           
  Lines       10560    10560           
=======================================
  Hits        10541    10541           
  Misses         19       19           
Flag Coverage Δ
unittests 99.82% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Contributor

@renatomello renatomello left a comment

Choose a reason for hiding this comment

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

I don't think this alters anything important in the function, but @BrunoLiegiBastonLiegi can correct me if I'm wrong

@MatteoRobbiati MatteoRobbiati added this pull request to the merge queue May 29, 2024
Merged via the queue into master with commit 363a6e5 May 29, 2024
28 checks passed
@scarrazza scarrazza deleted the castingqubits branch June 25, 2024 09:55
@renatomello renatomello changed the title random_clifford casting qubits to python int random_clifford casting qubits to python int Jul 31, 2024
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.

4 participants