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

Make DistributedState custom operator free #323

Merged
merged 3 commits into from
Feb 11, 2021
Merged

Make DistributedState custom operator free #323

merged 3 commits into from
Feb 11, 2021

Conversation

stavros11
Copy link
Member

Fixes #320 by:

  • Removing the K.op in the DistributedState by defining the transpose_state as a seperate backend method implemented using tf primitives when backend != "custom".
  • Moves the DistributedState tests in a different files which is skipped when the custom backend is not available as this state is not useful without the DistributedCircuit and this is only available for the custom backend.

Note that this does not implement the DistributedCircuit for the einsum backends, but this should be not hard to do if we need it.

Everything seems to work locally but let's see if the CI also passes.

@codecov
Copy link

codecov bot commented Feb 11, 2021

Codecov Report

Merging #323 (d4f907e) into master (fd75a1d) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##            master      #323    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           68        73     +5     
  Lines        11516     11963   +447     
==========================================
+ Hits         11516     11963   +447     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

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

Impacted Files Coverage Δ
src/qibo/backends/numpy.py 100.00% <ø> (ø)
src/qibo/tests_new/conftest.py 100.00% <ø> (ø)
src/qibo/abstractions/states.py 100.00% <100.00%> (ø)
src/qibo/backends/abstract.py 100.00% <100.00%> (ø)
src/qibo/backends/tensorflow.py 100.00% <100.00%> (ø)
src/qibo/core/callbacks.py 100.00% <100.00%> (ø)
src/qibo/core/cgates.py 100.00% <100.00%> (ø)
src/qibo/core/circuit.py 100.00% <100.00%> (ø)
src/qibo/core/hamiltonians.py 100.00% <100.00%> (ø)
src/qibo/core/states.py 100.00% <100.00%> (ø)
... and 16 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 70e17c7...d4f907e. Read the comment docs.

@scarrazza
Copy link
Member

Perfect thanks!

@scarrazza scarrazza merged commit 0422b84 into master Feb 11, 2021
@scarrazza scarrazza deleted the windowstests branch March 6, 2021 09:26
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.

make DistributedState custom operator free
2 participants