-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup nbsphinx; Document Callbacks; Add RBM Tutorial PDF to docs; sph…
…inx-autobuild livehtml now watches examples and python source folders too
- Loading branch information
Showing
14 changed files
with
352 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../examples/QuCumberTutorial.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../examples/QuCumberTutorialComplex.ipynb" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "../examples/QuCumberTutorialReal.ipynb" | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Callbacks | ||
========= | ||
|
||
.. autoclass:: qucumber.callbacks.Callback | ||
:members: | ||
|
||
.. autoclass:: qucumber.callbacks.LambdaCallback | ||
|
||
.. autoclass:: qucumber.callbacks.ModelSaver | ||
|
||
.. autoclass:: qucumber.callbacks.Logger | ||
|
||
.. autoclass:: qucumber.callbacks.EarlyStopping | ||
|
||
.. autoclass:: qucumber.callbacks.VarianceBasedEarlyStopping | ||
|
||
.. autoclass:: qucumber.callbacks.MetricEvaluator | ||
:members: get_value, __len__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Complex Algebra | ||
====================== | ||
=============== | ||
|
||
.. automodule:: qucumber.cplx | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Observables | ||
=========== | ||
|
||
.. automodule:: qucumber.observables | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,5 @@ | ||
Theory | ||
====================== | ||
|
||
Here we will explain the theory behind the code. | ||
|
||
compute_batch_gradient | ||
---------------------- | ||
|
||
- The gradients for the amplitude and the phase are initialized as | ||
zero tensors. | ||
- For each element in the batch the number of non-trivial unitaries is counted | ||
- If all the unitaries are trivial, the gradient for the amplitude reads: | ||
|
||
.. math:: | ||
\frac{1}{M}\nabla_{\lambda} \log p_{\lambda}(\hat{\bm\sigma}) | ||
Calculating the gradients | ||
------------------------- | ||
|
||
If the number of non-trivial unitaries :math:`N_U>0` is not equal zero we | ||
construct the following state for all possible :math:`S_j` | ||
(for simplicity we assume there is only one unitary): | ||
|
||
.. math:: | ||
\ket{\bm{\sigma}} = \ket{\sigma_1^{b=z} \dots S_j^{b=z} \sigma_{j+1}^{b=z}} | ||
For a basic introduction to Restricted Boltzmann Machines, | ||
click `here <../_static/RBM_tutorial.pdf>`_ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.