def all_required_parameters(cls): parameters = set(cls.rabi_required_parameters) parameters = parameters.union(set(cls.trap_frequencies)) parameters = parameters.union(set(excitation_rabi_2ions.all_required_parameters())) parameters = list(parameters) #removing parameters we'll be overwriting, and they do not need to be loaded parameters.remove(('Excitation_729','rabi_excitation_amplitude')) parameters.remove(('Excitation_729','rabi_excitation_duration')) parameters.remove(('Excitation_729','rabi_excitation_frequency')) return parameters
def all_required_parameters(cls): parameters = set(cls.rabi_required_parameters) parameters = parameters.union(set(cls.trap_frequencies)) parameters = parameters.union(set(excitation_rabi_2ions.all_required_parameters())) parameters = list(parameters) #removing parameters we'll be overwriting, and they do not need to be loaded parameters.remove(('Rabi_excitation_729_2ions','ion1_excitation_frequency')) parameters.remove(('Rabi_excitation_729_2ions','ion1_excitation_amplitude')) parameters.remove(('Rabi_excitation_729_2ions','ion1_excitation_duration')) parameters.remove(('Rabi_excitation_729_2ions','ion2_excitation_frequency')) parameters.remove(('Rabi_excitation_729_2ions','ion2_excitation_amplitude')) parameters.remove(('Rabi_excitation_729_2ions','ion2_excitation_duration')) return parameters