Exemplo n.º 1
0
	def add_noise_static_heis2(self, matrix, gamma):
		'''
		add static noise model

		same as add_noise_static, but for a exponentially varying hamiltonian with saturation, see docs.
		'''
# 		my_noise = noise_desciption(STATIC_NOISE, None, 2./(2.*np.pi*T2)**2)
		my_noise = noise_desciption(STATIC_NOISE, None, gamma)
		H_data = hamiltonian_data(matrix, pulse(), signal_type.SWO2, noise = my_noise)
		self.hamiltonian_data += H_data
Exemplo n.º 2
0
	def add_noise_generic_heis2(self, matrix, spectral_power_density, A_noise_power, H_pulse=None):
		'''
		add generic noise model

		same as add_noise_generic, but for a exponentially varying hamiltonian with saturation, see docs.
		'''
		spectrum = lambda u, x=spectral_power_density: x(u)*A_noise_power
		my_noise = noise_desciption(SPECTRUM_NOISE, spectrum, 0)
		H_data = hamiltonian_data(matrix, pulse(), signal_type.SWO2, noise = my_noise)
		self.hamiltonian_data += H_data
Exemplo n.º 3
0
	def add_noise_static(self, matrix, T2, H_pulse=None):
		'''
		add static noise model

		Args:
			matrix (np.ndarray[dtype=np.complex, ndim=2]) : input matrix on what the noise needs to act.
			T2 (double) : the T2 you which you want to provide.
			TODO (later) H_pulse (pulse) : pulse describing a modulation of the noise. Optional variable
		'''
		my_noise = noise_desciption(STATIC_NOISE, None, 2./(2.*np.pi*T2)**2)
		H_data = hamiltonian_data(matrix, pulse(), signal_type.NORMAL, noise = my_noise)
		self.hamiltonian_data += H_data
Exemplo n.º 4
0
	def add_noise_generic(self, matrix, spectral_power_density, A_noise_power, H_pulse=None):
		'''
		add generic noise model

		Args:
			matrix (np.ndarray[dtype=np.complex, ndim=2]) : input matrix on what the noise needs to act.
			spectral_power_density (lamda) : function describing S(omega) (frequency expected in 2pi*f)
			A_noise_power (double) : the noise power to provide.
			TODO (later) H_pulse (pulse) : pulse describing a modulation of the noise. Optional variable
		'''
		spectrum = lambda u, x=spectral_power_density: x(u)*A_noise_power
		my_noise = noise_desciption(SPECTRUM_NOISE, spectrum, 0)
		H_data = hamiltonian_data(matrix, pulse(), signal_type.NORMAL, noise = my_noise)
		self.hamiltonian_data += H_data