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

Distributed circuit refactoring #604

Merged
merged 16 commits into from
Jul 5, 2022
Merged

Distributed circuit refactoring #604

merged 16 commits into from
Jul 5, 2022

Conversation

stavros11
Copy link
Member

Implements the distributed circuit (multigpu) as part of the refactoring. Note that since qibotf is removed, this only works with qibojit-cupy backends. Relevant operators were added in #qiboteam/qibojit#81.

Tests are passing on my GPU. I have not tested performance on device with multiple GPUs.

Also note that the distributed circuit and everything related to it cannot be tested in CI which has no GPUs, so coverage will not be 100%, unless we disable the related lines.

@codecov
Copy link

codecov bot commented Jul 4, 2022

Codecov Report

Merging #604 (fa2c52f) into abstrevol (d1effb0) will increase coverage by 9.04%.
The diff coverage is 84.09%.

@@              Coverage Diff              @@
##           abstrevol     #604      +/-   ##
=============================================
+ Coverage      77.26%   86.31%   +9.04%     
=============================================
  Files             86       84       -2     
  Lines          11997    11885     -112     
=============================================
+ Hits            9270    10259     +989     
+ Misses          2727     1626    -1101     
Flag Coverage Δ
unittests 86.31% <84.09%> (+9.04%) ⬆️

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

Impacted Files Coverage Δ
src/qibo/backends/tensorflow.py 98.36% <ø> (ø)
src/qibo/tests/test_models_qft.py 86.66% <ø> (+18.33%) ⬆️
...rc/qibo/tests/test_models_distcircuit_execution.py 11.47% <6.00%> (ø)
src/qibo/gates/gates.py 99.49% <50.00%> (-0.25%) ⬇️
src/qibo/models/evolution.py 81.96% <70.00%> (+1.66%) ⬆️
src/qibo/tests/conftest.py 96.15% <71.42%> (-3.85%) ⬇️
src/qibo/gates/abstract.py 94.54% <75.00%> (+1.37%) ⬆️
src/qibo/backends/numpy.py 91.83% <80.00%> (-0.56%) ⬇️
src/qibo/models/distcircuit.py 93.36% <84.74%> (ø)
src/qibo/optimizers.py 93.18% <85.71%> (+80.36%) ⬆️
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1effb0...fa2c52f. Read the comment docs.

@stavros11 stavros11 changed the base branch from abstrevol to abstrvar July 5, 2022 10:52
@scarrazza scarrazza changed the base branch from abstrvar to abstractions July 5, 2022 11:30
@scarrazza scarrazza merged commit 5977bb5 into abstractions Jul 5, 2022
@stavros11 stavros11 deleted the abstrdistributed branch July 5, 2022 12:34
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.

2 participants