Skip to content

Commit d3f4efe

Browse files
committed
update docs
1 parent 1a944b5 commit d3f4efe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/qinfo_tools/qng.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ However, computing the above expression is a costly operation scaling quadratica
1616

1717
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.
1818

19+
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.
1920
```python exec="on" source="material-block" html="1" session="main"
2021
import torch
2122
from torch.utils.data import random_split

0 commit comments

Comments
 (0)