You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we have a circuit depending on parameters, it is possible to set some parameters as trainable or not trainable. Then, it is possible to recover only the trainable one or all of them. Can we add a feature to retrieve the non trainable parameters as well?
from qibo.models import Circuit
from qibo import gates
C = Circuit(2)
C.add(gates.RY(0, theta=1))
C.add(gates.RY(1, theta=2, trainable=False))
print(C.get_parameters(include_not_trainable=False))
print(C.get_parameters(include_not_trainable=True))
The text was updated successfully, but these errors were encountered:
If we have a circuit depending on parameters, it is possible to set some parameters as
trainable
ornot trainable
. Then, it is possible to recover only the trainable one or all of them. Can we add a feature to retrieve the non trainable parameters as well?The text was updated successfully, but these errors were encountered: