Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
inafergra committed May 26, 2024
1 parent 1a944b5 commit d3f4efe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/qinfo_tools/qng.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ However, computing the above expression is a costly operation scaling quadratica

In this tutorial, we use the QNG and QNG-SPSA optimizers with the Quantum Circuit Learning algorithm, a variational quantum algorithm which uses Quantum Neural Networks as universal function approximators.

Keep in mind that only *circuit* parameters can be optimized with the QNG optimizer, since we can only calculate the QFI matrix of parameters contained in the circuit. If your model holds other trainable, non-circuit parameters, such as scaling or shifting of the input/output, another optimizer must be used for to optimize those parameters.
```python exec="on" source="material-block" html="1" session="main"
import torch
from torch.utils.data import random_split
Expand Down

0 comments on commit d3f4efe

Please sign in to comment.