supergrad.scgraph.SCGraph.convert_graph_to_quantum_system#
- SCGraph.convert_graph_to_quantum_system(add_random: bool = True, share_params: bool = True, unify_coupling: bool = False, **kwargs)[source]#
Convert a networkX graph to SuperGrad quantum system.
- Parameters:
add_random – whether adding random device parameters deviations or not
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.