supergrad.scgraph.SCGraph.add_lcj_params_variance_to_graph

supergrad.scgraph.SCGraph.add_lcj_params_variance_to_graph#

SCGraph.add_lcj_params_variance_to_graph(multi_err=0.01, seed=1)[source]#

Assign (random) values of variance to superconducting qubits’ parameters [‘ec’, ‘ej’, ‘el’] in the graph. Note that here we only generate and store the multiplicative factors in the graph. They are not applied yet.

Parameters:
  • multi_err (float) – the strength of the multiplicative error. More concretely, a different factor 1+ N * multi_error will be multiplied to each parameter, where N is sampled from normal distribution.

  • seed (int) – the random seed to generate parameters variance.