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

Customize quantum_info functions #212

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Conversation

BrunoLiegiBastonLiegi
Copy link
Contributor

@BrunoLiegiBastonLiegi BrunoLiegiBastonLiegi commented Feb 17, 2025

This provides customization for the quantum_info functions introduced in qiboteam/qibo#1583.
In the following some benchmarks run on 10 repetions:

pauli basis

### 3 qubits
--> numpy:  0.0009936720016412437
--> numba:  0.05624490500122192
--> cupy:  0.13221715999679873
### 5 qubits
--> numpy:  0.24638988500009873
--> numba:  0.06344797999918228
--> cupy:  0.005442648998723598
### 7 qubits
--> numpy:  82.37901496199993
--> numba:  15.51170543400076
--> cupy:  0.7553486539982259

random gaussian

##### random gaussian
### 5 qubits
--> numpy:  0.0017942120011866791
--> numba:  0.0047024770010466455
--> cupy:  0.13087414899928262
### 10 qubits
--> numpy:  0.35412388399890915
--> numba:  0.036867562999759684
--> cupy:  0.0028848960009781877
### 12 qubits
--> numpy:  6.0999391290006315
--> numba:  0.8496762070008117
--> cupy:  0.002546637000705232

Copy link

codecov bot commented Feb 17, 2025

Codecov Report

Attention: Patch coverage is 34.50882% with 260 lines in your changes missing coverage. Please review.

Project coverage is 74.02%. Comparing base (035c9af) to head (5818b6d).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/qibojit/custom_operators/quantum_info.py 32.64% 260 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##              main     #212       +/-   ##
============================================
- Coverage   100.00%   74.02%   -25.98%     
============================================
  Files            7        8        +1     
  Lines          604     1001      +397     
============================================
+ Hits           604      741      +137     
- Misses           0      260      +260     
Flag Coverage Δ
unittests 74.02% <34.50%> (-25.98%) ⬇️

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.

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.

1 participant