surface_sim.setups.Setup.convert_to_random#
- setups.Setup.convert_to_random(**free_param_samplers)#
Converts this setup into a random setup, in which the free parameters are randomly sampled for each qubit and qubit pair.
The free parameters (
Setup.free_params) are sampled on the fly the first time they are requested and then stored. If a qubit or qubit pair has some parameters already set, their value is not modified, that is: no free parameter is sampled for this qubit or qubit pair. Because the free parameters are sampled on the fly, the setup must be stored after generating the wanted circuit. Otherwise, the parameters are not yet sampled nor stored in this setup.The qubit-specific parameters that are generated from the randomly sampled values of the free parameter correspond to the global parameters of this setup (
Setup.global_params).- Parameters:
- **free_param_samplers
Samplers for the free parameters.