SycamoreGate.with_frozen_params
- SycamoreGate.with_frozen_params(frozen_params)
Freeze some of a gate’s parameters so they don’t change from optimization.
- Parameters:
frozen_params (dict[int, float]) – A map from parameter indices to parameters values. If i in frozen_params, then this will freeze the i-th parameter to the value given by frozen_params[i].
- Returns:
The gate with some parameters frozen.
- Return type:
FrozenParameterGate