supergrad.scgraph.SCGraph.update_params#
- SCGraph.update_params(params: dict, share_params=True, unify_coupling=False)[source]#
Update parameters to networkX Graph
- Parameters:
params – new parameters dictionary
share_params – If True, two sets of parameters will be shared according to the shared_param_mark attribute in the graph. This means that the shared parameters will remain the same during optimization. First, qubits with the same shared_param_mark will have their parameters shared. Second, the coupling strengths between qubits of type i and j are shared for all such pairs.
unify_coupling – all coupling sharing the same parameters. Valid only if share_params is True.