XanaduAI / strawberryfields

Strawberry Fields is a full-stack Python library for designing, simulating, and optimizing continuous variable (CV) quantum optical circuits.
https://strawberryfields.ai
Apache License 2.0
754 stars 191 forks source link

Add GBS parametrization for training variational GBS circuits #387

Closed trbromley closed 4 years ago

trbromley commented 4 years ago

This PR adds to the train module of sf.apps. A parametrization module is added which contains a VGBS class allowing users to vary an adjacency matrix given an embedding and trainable parameters. The embedding is provided in https://github.com/XanaduAI/strawberryfields/pull/388.

codecov[bot] commented 4 years ago

Codecov Report

Merging #387 into master will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #387   +/-   ##
=======================================
  Coverage   97.82%   97.82%           
=======================================
  Files          55       55           
  Lines        6564     6564           
=======================================
  Hits         6421     6421           
  Misses        143      143           

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 04a1a23...04a1a23. Read the comment docs.

nquesada commented 4 years ago

@antalszava : I think that error message in The Walrus is unnecesary. One can prove that the root one is looking for a) exists and b) will be found using something like Newton-Raphson. That error message has never been displayed.