[Feature] Generalize parameter constraints over certain range #230
Labels
feature
New feature or request
refactoring
Refactoring of legacy code
to_check
To check in the development of the new expression system.
When running parameterized digital-analog programs parameters often have to be optimized while bounded over a specific range. For example, currently in the
AddressingPattern
class this is done by re-defining the parameters with a multiplication with a Heaviside function such that values outside the allowed range are counted as zero. To note that for optimization purposes, a smooth approximation of the Heaviside needs to be used for gradient calculation, as currently done in the addressing pattern.This can potentially be generalized, either as a general function or directly inside the Qadence
VariationalParameter
to be used in other modules.Potentially related: can parameters like angles be defined mod 2 pi?
The text was updated successfully, but these errors were encountered: