1007 lines
531 KiB
Plaintext
1007 lines
531 KiB
Plaintext
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 1,
|
||
|
"id": "a4246751",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"from calculateDipoleTrapPotential import *"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "c68468e4",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot ideal trap potential resulting for given parameters only"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"id": "38c770ac",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"C:\\Users\\Karthik\\anaconda3\\lib\\site-packages\\scipy\\optimize\\minpack.py:833: OptimizeWarning: Covariance of the parameters could not be estimated\n",
|
||
|
" warnings.warn('Covariance of the parameters could not be estimated',\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHwCAYAAAA2B95/AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAACYpElEQVR4nOzdd3hUVfrA8e+Z9N57gFBC7yDYAUVRxN4bKpZd27Ju+bmuu7quW9x1Xfu6a+8de0NUULEgSO8JKZAQ0kN6nfP74yZjQibJJMzMzcy8n+eZZ5Jb39xMJu+ce857lNYaIYQQQgjhOyxmByCEEEIIIdxLEkAhhBBCCB8jCaAQQgghhI+RBFAIIYQQwsdIAiiEEEII4WMkARRCCCGE8DEekQAqpU5RSu1SSmUrpX5ndjxCCCGEEJ5MDfY6gEopP2A3cBJQAKwFLtZab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xED3X7qTfuq2LF9mIAzpuRzvzxSW6PQYjBQm4BC+GBRiWG8+HNx9paLgoq60mPkdvBwgMU/ghp091eAHpdXgVXPP0DyVHBzBuTIGWVhM+TvwAhPFRH8vfSmnzm//tL1uSUmxyREH1oqoHSXW6//btt/0GuenYtSZHBvHTNkZL8CYEkgEJ4vAUTkkmLDuHa59exu7jG7HCE6Nn+jYB2awKYU1rL4qd+ICLInxeumU1ylMysIwRIAiiEx4sPD+K5JbMICvDjyqd/oLi60eyQhLCv8EfjOXW62075zoZCAF64ZjZp0VLYWYgOkgAK4QXSY0J55sojONjQwpJn19LaZjU7JCG6278eYjIgLM5tp7zlpNF
|
||
|
"text/plain": [
|
||
|
"<Figure size 648x504 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"Power = 1.07*u.W\n",
|
||
|
"Polarizability = 184.4 # in a.u, most precise measured value of Dy polarizability\n",
|
||
|
"Wavelength = 1.064*u.um\n",
|
||
|
"w_x, w_z = 30*u.um, 30*u.um # Beam Waists in the x and y directions\n",
|
||
|
"\n",
|
||
|
"#Power = 11*u.W\n",
|
||
|
"#Polarizability = 184.4 # in a.u, most precise measured value of Dy polarizability\n",
|
||
|
"#w_x, w_z = 67*u.um, 67*u.um # Beam Waists in the x and y directions\n",
|
||
|
"\n",
|
||
|
"options = {\n",
|
||
|
" 'axis': 2, # axis referenced to the beam along which you want the dipole trap potential\n",
|
||
|
" 'extent': 1e2, # range of spatial coordinates in one direction to calculate trap potential over\n",
|
||
|
" 'crossed': False,\n",
|
||
|
" 'delta': 70, # angle between arms in degrees\n",
|
||
|
" 'modulation': False,\n",
|
||
|
" 'aspect_ratio': 4, # required aspect ratio of modulated arm\n",
|
||
|
" 'gravity': True,\n",
|
||
|
" 'tilt_gravity': False,\n",
|
||
|
" 'theta': 0.75, # gravity tilt angle in degrees\n",
|
||
|
" 'tilt_axis': [1, 0, 0], # lab space coordinates are rotated about x-axis in reference frame of beam\n",
|
||
|
" 'astigmatism': False,\n",
|
||
|
" 'disp_foci': 2.5*u.mm, #0.9 * z_R(w_0 = np.asarray([30]), lamb = 1.064)[0]*u.um, # difference in position of the foci along the propagation direction (Astigmatism)\n",
|
||
|
" 'extract_trap_frequencies': False\n",
|
||
|
"}\n",
|
||
|
"\n",
|
||
|
"ComputedPotentials = [] \n",
|
||
|
"Params = [] \n",
|
||
|
"\n",
|
||
|
"Positions, IdealTrappingPotential, TrappingPotential, TrapDepthsInKelvin, CalculatedTrapFrequencies, ExtractedTrapFrequencies = computeTrapPotential(w_x, w_z, Power, Polarizability, options)\n",
|
||
|
"ComputedPotentials.append(IdealTrappingPotential)\n",
|
||
|
"ComputedPotentials.append(TrappingPotential)\n",
|
||
|
"Params.append([TrapDepthsInKelvin, CalculatedTrapFrequencies, ExtractedTrapFrequencies])\n",
|
||
|
"\n",
|
||
|
"cpots = np.asarray(ComputedPotentials)\n",
|
||
|
"plotPotential(Positions, cpots, options, Params)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "fc9809de",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot harmonic fit for trap potential resulting for given parameters only"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 3,
|
||
|
"id": "0f3e80f7",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA1gAAAGoCAYAAABbkkSYAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAACAnElEQVR4nO3deZhcVbX///fqzkQGyBxChwxICCSozPBFxWCCIqJBFAWaC6gYQ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ij7fEzG4DngF2Ahe5+66SvFkREYmFEiypTvvsoxasItidYO2zT7yBSGT5JVdOXZ2xq8r//Xf3BQRJVOqyuSmPHbgow75nZVi+DpiSYd1sYHZX4xURkcpSUwnWpk2bWLNmDTt27Mi4zT777MOzzz5bwqjyo/gimjsX6uuhQyxlE18GmeLr168fo0aNir0ST4/W1qALZp8+scYh0eTbcjVkyFusXbtXcYIRERGpETWTYG3atInVq1fT0NDAXnvthWX4z2Pz5s0MGDCgxNFFp/giqq+HXbvgkEPaLS6b+DJIF19bWxuvvvoqa9euZfjw4Rn2LI0era3qHlgh8k2ubroJGhoeIej9JiIiIl1VM0Uu1qxZQ0NDA3379s2YXEkVSSZYVaCuro4RI0bwRhmMKVOCVf5mzsw/uXKHxsbixCMiIlJraqYFa8eOHey1l7q+1IwqSrAAevbsyc6dO+MOgx5vvqkEq4z17Qtbt+a3j3d1dicRERFJq2ZasAC1XNWSKkuwyuWzqxas8mWm5EpERKQc1FSCJTWkvh7a2oKbFIwSrPLUlfxbyZWIiEhxKMG
|
||
|
"text/plain": [
|
||
|
"<Figure size 864x432 with 2 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"v, dv, popt, pcov = extractTrapFrequency(Positions, TrappingPotential, options['axis'])\n",
|
||
|
"plotHarmonicFit(Positions, TrappingPotential, TrapDepthsInKelvin, options['axis'], popt, pcov)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "37b40607",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot trap potential resulting for given parameters (with one parameter being a list of values and the potential being computed for each of these values) only"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 4,
|
||
|
"id": "8504f99f",
|
||
|
"metadata": {
|
||
|
"scrolled": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"C:\\Users\\Karthik\\anaconda3\\lib\\site-packages\\scipy\\optimize\\minpack.py:833: OptimizeWarning: Covariance of the parameters could not be estimated\n",
|
||
|
" warnings.warn('Covariance of the parameters could not be estimated',\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHwCAYAAAA2B95/AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAD7AklEQVR4nOzddZxc1f3/8dcZX3f3ZOMb90AMQnFpKVKglBotUJdvy6+l38q3/dJ+a1SgpYLUW9ydGMQ9G9vNurvbzNzz+2M2IWFtNhlZ+Twfj3mQvefce98zZDefvfeec5TWGiGEEEIIMXmYgh1ACCGEEEIElhSAQgghhBCTjBSAQgghhBCTjBSAQgghhBCTjBSAQgghhBCTjBSAQgghhBCTzIQsAJVSlymljiulCpVS3wx2HiGEEEKIsURNtHkAlVJm4ARwCVAB7AI+orU+EtRgQgghhBBjxES8ArgMKNRaF2mt+4B/AtcGOZMQQgghxJhhCXYAP0gDys/4ugJY/v5OSqk7gTsBQkJCFmdkZPg1lNPtxtVqHrC919ZDdLiDHpcL3Tbwf0evvYfoMAddfU5Uh3VAe5+jh6hQBx29fZg7bQPPG9JLZIid9u5eLN32Ae2u0D4iHDbaunqx9gxsd4c5Cbdbae3swdbrGNCuw12E2iy0dPZgH6TdFOnGbjHT0tGDvW9guzXawGIy0dLeg905sN0Ro1FKDd6uNCExCoDWtl5srrPza2UQGmMast0wuQiL9nzmba19WN1nf35uk5PwaM9n3t7qxOK2oJVGo9HKwGVyER0ZAkBTexdo0EpjoHErjVJmksJCASjv7MHQCqVNmDCjFIRaFDEOT/7Gbs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<Figure size 648x504 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"Potentials = [] \n",
|
||
|
"Params = [] \n",
|
||
|
"Power = [10, 30, 40]*u.W # Single Beam Power\n",
|
||
|
"for p in Power: \n",
|
||
|
" Positions, IdealTrappingPotential, TrappingPotential, TrapDepthsInKelvin, CalculatedTrapFrequencies, ExtractedTrapFrequencies = computeTrapPotential(w_x, w_z, p, Polarizability, options)\n",
|
||
|
" Potentials.append(IdealTrappingPotential)\n",
|
||
|
" Potentials.append(TrappingPotential)\n",
|
||
|
" Params.append([TrapDepthsInKelvin, CalculatedTrapFrequencies, ExtractedTrapFrequencies])\n",
|
||
|
"\n",
|
||
|
"cpots = np.asarray(Potentials)\n",
|
||
|
"plotPotential(Positions, cpots, options, Params)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "951010c6",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot transverse intensity profile and trap potential resulting for given parameters only"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"id": "f3e4afd9",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"options = {\n",
|
||
|
" 'extent': 60, # range of spatial coordinates in one direction to calculate trap potential over\n",
|
||
|
" 'modulation': True,\n",
|
||
|
" 'modulation_function': 'arccos',\n",
|
||
|
" 'modulation_amplitude': 2.16\n",
|
||
|
"}\n",
|
||
|
"\n",
|
||
|
"positions, waists, I, U, p = computeIntensityProfileAndPotentials(Power, [w_x, w_z], Polarizability, Wavelength, options)\n",
|
||
|
"plotIntensityProfileAndPotentials(positions, waists, I, U)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "db0df307",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot gaussian fit for trap potential resulting from modulation for given parameters only"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"id": "7afa7d82",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"x_Positions = positions[0].value\n",
|
||
|
"z_Positions = positions[1].value\n",
|
||
|
"x_Potential = U[:, np.where(z_Positions==0)[0][0]].value\n",
|
||
|
"z_Potential = U[np.where(x_Positions==0)[0][0], :].value\n",
|
||
|
"poptx, pcovx = p[0], p[1]\n",
|
||
|
"poptz, pcovz = p[2], p[3]\n",
|
||
|
"plotGaussianFit(x_Positions, x_Potential, poptx, pcovx)\n",
|
||
|
"plotGaussianFit(z_Positions, z_Potential, poptz, pcovz)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "5e5b8123",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Calculate relevant parameters for evaporative cooling"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 5,
|
||
|
"id": "95ab43bd",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Particle Density = 4.63E+13 1 / cm3\n",
|
||
|
"Elastic Collision Rate = 2813.75 1 / s\n",
|
||
|
"PSD = 9.00E-05 \n",
|
||
|
"v_x = 2588.17 Hz\n",
|
||
|
"v_y = 20.66 Hz\n",
|
||
|
"v_z = 2588.17 Hz\n",
|
||
|
"a_s = 111.31 \n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"Power = 40*u.W\n",
|
||
|
"Polarizability = 184.4 # in a.u, most precise measured value of Dy polarizability\n",
|
||
|
"Wavelength = 1.064*u.um\n",
|
||
|
"w_x, w_z = 30*u.um, 30*u.um # Beam Waists in the x and y directions\n",
|
||
|
"\n",
|
||
|
"AtomNumber = 1.00 * 1e7\n",
|
||
|
"BField = 2.5 * u.G\n",
|
||
|
"\n",
|
||
|
"modulation_depth = 0.0\n",
|
||
|
"Temperature = convert_modulation_depth_to_temperature(modulation_depth)[0] * u.uK\n",
|
||
|
"n = particleDensity(w_x, w_z, Power, Polarizability, N = AtomNumber, T = Temperature, m = 164*u.u).decompose().to(u.cm**(-3))\n",
|
||
|
"Gamma_elastic = calculateElasticCollisionRate(w_x, w_z, Power, Polarizability, N = AtomNumber, T = Temperature, B = BField)\n",
|
||
|
"PSD = calculatePSD(w_x, w_z, Power, Polarizability, N = AtomNumber, T = Temperature).decompose()\n",
|
||
|
"\n",
|
||
|
"print('Particle Density = %.2E ' % (n.value) + str(n.unit))\n",
|
||
|
"print('Elastic Collision Rate = %.2f ' % (Gamma_elastic.value) + str(Gamma_elastic.unit))\n",
|
||
|
"print('PSD = %.2E ' % (PSD.value))\n",
|
||
|
"\n",
|
||
|
"v_x = calculateTrapFrequency(w_x, w_z, Power, Polarizability, dir = 'x')\n",
|
||
|
"v_y = calculateTrapFrequency(w_x, w_z, Power, Polarizability, dir = 'y')\n",
|
||
|
"v_z = calculateTrapFrequency(w_x, w_z, Power, Polarizability, dir = 'z')\n",
|
||
|
"\n",
|
||
|
"print('v_x = %.2f ' %(v_x.value) + str(v_x.unit))\n",
|
||
|
"print('v_y = %.2f ' %(v_y.value) + str(v_y.unit))\n",
|
||
|
"print('v_z = %.2f ' %(v_z.value) + str(v_z.unit))\n",
|
||
|
"\n",
|
||
|
"print('a_s = %.2f ' %(scatteringLength(BField)[0] / ac.a0))"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "ff252fbe",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot alphas"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 7,
|
||
|
"id": "dd7fc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Hm5OUX5rM9czub922mXnTpF8j7iyUoY4wxPgq1kB0HdrDl1y1s2beFmOox3HbJbQA0e74Zu7KdAVC3XHQLd9S7o9LisARljDFBrqzJYk9n9Jyqsit7F1v2beHAkQNc1+o6AAa/M5glm5dwOP9w0baXnXVZUYKa0GMC0dWiOb/++bRq0IqvVn1V6v79wRKUMcYEuVM9Z66q7D20l+0HttOpiTNI7i8r/0LKVyls2beFnKPORVWNYhoVJahLm1xK8zrNOb/++bSs15KW9VvSpHaTon3ee+m9x79QJbEEZYwxVVzm4UziasQRIRG8v/l95n41ly37trDl1y1kHs5EEA6NP0TNajVRVeJj4+nZvGdRAmpZr2XRvh7q/pCL78RX+CaoYCuwYowxFXC04CjTVk8jY1dG0TmiPYf2sPWBrbSo14Ktv25l5Q8raVm/JcPaDitKQBHiXFX08OUP8/DlrpTeO2nhnaCKJ55wvlLXGFNlzN84n9998Dua1G5Cy3otuf6C62lZryW1azgX24/pOoYxXUsv9lnVhO2FuoEUjCXfZ8yYgYhwzjnnHPdYmzZtEBFeeOGFU96/tzz7G2+8UeY25ZV537ZtGyNHjiz1MZsuyYSbgkJnyvKb297Mp6M+Zefvd5I2Mo3pA6bzx+5/pFFMmSX1qqzw7UEVF6Ca78FU8n3QoEHcf//9bNu2jfT0dK688krAKY+xceNGqlWrxs0333zS+83Pz/cpG3Ii3pLuR44cYdq0aQCMGjWKuLg4gKJ7gHbt2tGzZ8+iZX+U7TCmqvhi5xeMWDyCBTct4MKGF3J
|
||
|
"text/plain": [
|
||
|
"<Figure size 432x288 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"plotAlphas()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "c09cb260",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot Temperatures"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 8,
|
||
|
"id": "5c79840e",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAagAAAEYCAYAAAAJeGK1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAABFeElEQVR4nO3dd3xUVfr48c+ThISSUAwQ6aFIr4Kii0oTEAVBsWGjKWtBYdddQV0h6rJfy2/tFVEBV8EGiq6oiBTLGgRBQZAihKo0BZJQQpLn98edmUyGQCZkWjLP+/W6r8ktc+6Tk2SenHvPPUdUFWOMMSbSxIQ7AGOMMaYolqCMMcZEJEtQxhhjIpIlKGOMMRHJEpQxxpiIFBfuAAKlZs2ampqaWqoysrOzqVKlSmACKuOsLgpYXTisHgpYXRQIRF0sX758r6rW8t1ebhJUamoqy5YtK1UZixYtokePHoEJqIyzuihgdeGweihgdVEgEHUhIluK2m6X+IwxxkQkS1DGGGMikiUoY4wxEckSlDHGmIhUbjpJGGPC4+DBg+zevZtjx46FO5SQqVatGmvXrg13GBHBn7qoUKECtWvXpmrVqiUq2xKUMeaUHTx4kF27dlGvXj0qVaqEiIQ7pJDIzMwkKSkp3GFEhOLqQlU5fPgwO3bsAChRkrJLfMaYU7Z7927q1atH5cqVoyY5mZIRESpXrky9evXYvXt3id5rLSggLw/mzYPZsxuRlQX9+0NsbLijMibyHTt2jEqVKoU7DFMGVKpUqcSXgaM+QeXlQb9+kJ4O2dmpvPMOdO0Kn35qScoYf1jLyfjjVH5PovYSX1oaiEBcHCxYAFlZoCpkZTnrcXHO/rS0cEdqTPnh/rsrbrG/OwNRnqBU4cEHnT8IbyLw0EPOfvtDMSZw3H937qV7d2fx3hYtf3eLFi1CRKhevbpnm4ggImRkZI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z988omnh9u1117LwIEDj4tl8uTJZGZm8vnnn/Ptt9/y17/+1dNRwrcOs7KyyMzM9MR/6NChQse88cYbTJ48mfnz5zNt2jRq165Nnz59aNeuHZmZmTz++OPUr1+f2bNn88Ybb5CcnEzPnj3JzMzkoosuonfv3nzzzTc8++yzHD16lL59+xY6d3Z2Nm+++SaTJk1i4cKFrF+/nvbt2zN+/Hg6dOhAZmamZ1w9VSUzM7PQpb0T/U4cOXKkZH9LRd2YCsYCpAKrXV9XBtKBaq71DKCm6+vngOu93vcKMKS48q2TRGBZXRSwunAEspOEW/fuzlLW+HaSiGYlqYuI7CRRhKZAY+AHEckA6gPfi8jpOC2mBl7H1gd2hjxCY0zA+Y7Ft3ixs9hYfKYoYbnEp6qrgNrudVeS6qKqe0VkLvCmiDwO1AXOAJaGI85Qck/5sWKF08OpLD1Vb4y/3CO4GOOPkCQoEZkJ9ABqish2YJKqvlLUsar6k4i8DawBcoHbVTVMz5cHV1oa+POs3qRJ9kdtjIk+oerFN1RV66hqBVWt75ucVDVVVfd6rU9W1aaq2kJV54UixnBwj+z84YdON1tviYnO9mgZ2dkYY3xF/Vh8kWDFCvB9ti07GwI4pJUxxpQ5lqAiQKifqjfGmLLAElQYuXs0DRzoDJbpLSvL2W49mowx0coSVBh5zy6am+vcc3roIec1Nze6Zhc1UcLmfDclYAkqQrin/PjHP5xX62JuyqUon/M9IyPDM+/S/v37gYI5n8IxWkk4z+0PS1DGmHLp/PPPR0RI80l23333HSJCfHw8+/btO6Wyt2zZ4kk0pTVy5EjGjh1L/fr1S13WiUybNq3Q5IShPHdp2ISFxpjwCPKc79dffz1fffUVM2fOLJSk3IO
|
||
|
"text/plain": [
|
||
|
"<Figure size 432x288 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"plotTemperatures(w_x, w_z, plot_against_mod_depth = True)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "063879ee",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Calculate and Plot calculated trap frequencies"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 14,
|
||
|
"id": "0ddff726",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjgAAAGoCAYAAABL+58oAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAB0q0lEQVR4nO3dd3iUxdrH8e+kkQQIvZeEDtKLwKEIiEhTSkAFkSZKERX09Rz1oIaAXY6KigUFKSJFiaAURSkiXVB6F0IEAgihl9R5/5gNCSFlk2z22d3cn+vaa3effcqdFcmPmXlmlNYaIYQQQghP4mV1AUIIIYQQjiYBRwghhBAeRwKOEEIIITyOBBwhhBBCeBwJOEIIIYTwOD5WF+AMXl5eOiAgwOoyhBBCCLd27do1rbV2i8aRfBFwAgICuHr1qtVlCCGEEG5NKXXd6hrs5RYpTAghhBAiOyTgCCGEEMLjSMARQgghhMeRgCOEEEIIj5MvBhkLIYQQ9kpKSuL48eP58uYUX19fSpcuTVBQkNWl5JoEHCGEECKVs2fPopSiVq1aeHnln44OrTXXr1/nxIkTAG4fcvLPfzkhhBDCDhcuXKBMmTL5KtwAKKUIDAykQoUKnDlzxupyci1//dcTQgghspCYmIivr6/VZVgmICCA+Ph4q8vINQk4QgghRBpKKatLsIyn/OwScIQQQgjhcSTgCCGEEMLjSMARQgghhMeRgCOEEEI4ypw5EBICXl7mec4cqyvKtyTgZNecOWyv0ZCiQxuys2Yj+cMrhBDCmDMHhg+HY8dAa/M8fLjDfk8MHjwYpRTvvvvuzW1Dhw5F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YlmsLIQQghhkQTg/3SYrgO0BEarcHUH8AKwUofpGsBK2/s85bSAoxS+mHAzR2siALTmtNYkak0S8DlmzA2YlplKqQ6vCJy0ba+YzvbbaK2naq2baa2b+Vi4zLdSirfueYunmj/Fu4dm8cpHfcyI4V694IMPcnzejRshLu727b/+Clu25LxeIYQQIqd0mI7WYfoP2+vUQ1J6AjNtu83ECcNLnDXIWGF+oBitGZtqezmtiba9fgZooTX9lKIu8DUpg4xXAjVsg4x/B57CdHEtAz7UmmWZXb9SpUp69uzZefCT2S9JJ/HuwXdZemopw4If5ZHEVnDhApQuDZUqZXm8PRITwba4LHXqgIW5Tggh3NaNGzduLkyZX2X0HXTo0CEO2JVq01StdboLW6lwFQKsBeoBUTpMF0312Xkdpos5sua0nPUrsDUwENilFNtt2/4L9FeKRphupkhgBIDW7FGKBcBeTHPXaK2xjTZhFDADCACW2x6ZiomJoX379o75SXKhXbt2DFk8hGk7p1O30x08ExENzz1nRg7PmweFCuX6GsWKQevW0LKlWf9KQo4QQmRPbu+iio42wwXmz3ffMZGZfAcJWuv0p+lPRYWrlCEpYfqSCnf+jC7OuotqndYorWmgNY1sj2VaM1Br6tu290huzbEd85rWVNOaWqlvA9earVpTz/bZk7a7qdyCt5c3X/b8kr539OXZn5/jk4eqmUlufvwR2rY1q3PmUpMm8OmnsGaNWc1cCCGEc02cmDfzkw0ePBilFO++++7NbUOHDkUpxaRJk9I9Zvz48SilbnusWbPGscWlosJVypCUMB1h23xahatyts/LAWfyrAAb+fe9k/l4+TAndA6xCbE8sewJ/HtMZ+iSJeae7xYtzAQ3jRrl6hqDB5txOJMmwZ13mlMLIYTImbFjYft2+/aNjTV//yYlmX9s/vkn+PllfVyjRvD++5nvM2jQIGbNmsX8+fN59tlniY+PZ/HixXh7ezNgwIB0j2nZsiVjxowBTKvMihUr8Pb2plSpUvb9QNmkwpUCpgH7dJh+N9VH3wODgTdtz4v
|
||
|
"text/plain": [
|
||
|
"<Figure size 576x432 with 2 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"AtomNumber = 1.00 * 1e7\n",
|
||
|
"BField = 1.4 * u.G\n",
|
||
|
"modulation_depth = np.arange(0, 1.0, 0.08)\n",
|
||
|
"\n",
|
||
|
"w_xs = w_x * convert_modulation_depth_to_alpha(modulation_depth)[0]\n",
|
||
|
"\n",
|
||
|
"v_x = np.zeros(len(modulation_depth))\n",
|
||
|
"v_y = np.zeros(len(modulation_depth))\n",
|
||
|
"v_z = np.zeros(len(modulation_depth))\n",
|
||
|
"\n",
|
||
|
"for i in range(len(modulation_depth)):\n",
|
||
|
" v_x[i] = calculateTrapFrequency(w_xs[i], w_z, Power, Polarizability, dir = 'x').value\n",
|
||
|
" v_y[i] = calculateTrapFrequency(w_xs[i], w_z, Power, Polarizability, dir = 'y').value\n",
|
||
|
" v_z[i] = calculateTrapFrequency(w_xs[i], w_z, Power, Polarizability, dir = 'z').value\n",
|
||
|
"\n",
|
||
|
"plotTrapFrequencies(v_x, v_y, v_z, modulation_depth, new_aspect_ratio, plot_against_mod_depth = True)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "76ff8301",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot measured trap frequencies"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 10,
|
||
|
"id": "7a85ec41",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjgAAAGoCAYAAABL+58oAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAA+vklEQVR4nO3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yle+UrKYaoXlfvha1NTU5CVbGO2aayCdDpKbHDO4+mr49rdLc48SS81KAdAyoyXWOEREat2yZcs46KCDendRruV//vygm2rYsLK0/L/88sscdNBBfOITn+C1117D3XnzzTdpbGwses2iRYs45phjaGhoYMuWLZx00kncf//93d6n2DMws3Z3b+rikqqmFpycCmTiIiKSIPX1QTLz8Y9DczPccUdZhjUceOCBHHHEEbzwwgts3LiRs846q9vkpr29nXPPPZfOzk7uuecejj76aB544AFmzpxZ0riqnRKcXBfVKacE3VL5Nm0KjldJF5WIiFSZ+nrYc08YNy4Yd1OmMZv5XVK5gcfFfPWrX+WPf/wjF110EVOmTOG2226jsbGRr3zlK/zpT38qS3zVSF1U+To7g9HvixcHLTdTp1b1AGN1UYmIlEafuqhyEjKTcdK6qPQWVb76+iADL9HodxERSaBMBrLZXY8XLliZTpet9X/dunVcffXVuxwfOXIkV111VVnuWWuU4IiIiPRG4VpUMXj33Xe58cYbdzk+btw4JTghJTgiIiI1prm5mVoeYlIJGmQsIiIiiaMER0RERBJHCY6IiIgkjhIcERERSRwlOCIiIr2Qmx+2p03zw8arIgmOGUPMeNKM581YasYuEwiYYWb82IwVZiwx41OViE1ERKQ3Mplg2cLcNmlSsOUfc1eCE7dKvSb+PnCsO5vMaACeMGOeOwvzykwFDgi3icBPwk8RERGRXqlIC4477k5uoaeGcCt8gf80YHZYdiEwwozRlYhPREREkqViY3DMqDdjMfA28LA7iwqKjAFez9tfFR4rqMcuNrOnzezpjo6OssUrIiISxbZtwRKGra2lr/v888/HzLj++us/OHbBBRdgZlx33XVdXpPJZLBw3Ef+1lLja2X1VsUSHHc63TkU2Bc40oxDCorYrlft0sqDu89098Pd/fBBgzQRs4iIxOvNN2HjRvjiF0tfd27l8LvuuguAbdu2ce+991JfX8/06dO7vOaoo47i8ssv5/LLL+eEE04AoL6+nr322qv0AVaximcI7mwwowU4EXgx79QqYGze/r7AGxUMTUREpFfcYdWq4PsTT8C8eTB1aunqnzx5MmPHjuXJJ59k5cqVvPTSS6xfv54pU6YwenTXozhOPPFETjzxRFatWsVRRx0FwC233MLBBx9cusBqQKXeotrLjBHh90bgeODlgmL3AeeFLWlHARvdWVOJ+ERERPri8cchN1qivR0uvBC2bCld/XV1dZxzzjkAzJkzhzlz5gBB11V3Nm7cyNSpU1m9ejXpdJqLLrqodEHViEp1UY0G5puxBHiKYAzO/WZcYsYlYZm5wCvACuDfgS9XKDYREZE+ueEG2L59x/7GjXDttaW9R66b6pe//CX33nsvu+++O6effnrR8lu3buWMM87gxRdf5MILLyQzQN9Xr0gXlTtLgMO6OH5L3ncHLq1EPCIiIqWwfPnO++3t8MADpZ0D58ADD+SII47gqaeeAuALX/gCjY2NRcun02nmz5/P4MGDGTJkCFdccQUAl112GR/5yEdKF1iV0yhdERGRPlq6FFKp4Hs5X1I6//zzP0hwci06xaxZE4zu2Lp1KzfffPMHx08//fQBleBoqQYREZEqd+mll+LhRHGTJk3qtuysWbM+KJu/pXKZ2AChFhwREZFeyGQgu8uCQ8H6U/nS6fIt17Bu3TquvvrqXY6PHDmSq666qjw3rTFKcERERHohk4l/nal3332XG2+8cZfj48aNU4ITUoIjIiJSY5qbm3HfZS5cyaMxOCIiIpI4SnBEREQkcZTgiIiISOIowREREZHE0SBjERGRXsi0ZMgu6OI98QLpSWkyqUz5A5IuKcERERHphUwqs1PikpqVAqBlRkss8UjX1EUlIiIiiaMEp1Z1dsLatfDqq3D//cG+iIiIAEpwaksmE8wFbgaDBsGLL0JrK5xySrCfOxf3FJsiIgPI+i3rWbhqIfNXzi953eeffz5mxvXXX//BsQsuuAAz47rrruvyms985jOYGXfccccHx0488UTMjF/96lclj7FaKcGpJZkMuMPvfgfDhu18btiw4Li7EhwRkQpp/F4jS95awvud73Ps7GNp/F5jSevPrRx+1113AbBt2zbuvfde6uvrmT59epfXXHTRRQD8/Oc/B2DTpk20tLTQ1NTEaaedVtL4qpkSnFr03HPQ1rbzsbY2WLw4lnBERAaquWfPxQhW2Wyoa2De9HklrX/y5MmMHTuWJ598kpUrV/LQQw+xfv16jj/+eEaPHt3lNWeccQZ77rknDz/8MG+//Ta///3vef/99zn11FNpamoqaXzVTAlOLTrsMCj8Q9rUBIceGks4IiID1eTxk3GcOqtj2/ZtpJpTJa2/rq6Oc845B4A5c+YwZ84cIOi6Kmbw4MGce+65dHR0cOedd3LfffcBFG3xSSqr5cW6mpqavK2wJWMg6OyEKVNIjX0UgJZfD4OJE+HBB6G+PubgRERqz7JlyzjooIP6dO0eP9iDkUNGMn6P8Txy3iMljgxefvllDjroID7xiU/w2muv4e68+eabNDYW7w5bunQphxxyCJ/61KdobW3FzFizZg0NDQ1Fryn2DMys3d27bfqxrNUDTwOrPe0nF5wz4EZgGtAOzPC0P9tdfaWgFpxakhtkPGgQPProjuObNgX7uYHGGoMjIlIxE/aewNjhY8uS3AAceOCBHHHEEbzwwgts3LiRs846q9vkBuDggw9m4sSJPPvss6xbt46//du/7Ta5KYHLgWV
|
||
|
"text/plain": [
|
||
|
"<Figure size 576x432 with 2 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"modulation_depth_radial = [0, 0.5, 0.3, 0.7, 0.9, 0.8, 1.0, 0.6, 0.4, 0.2, 0.1]\n",
|
||
|
"fx = [3.135, 0.28, 0.690, 0.152, 0.102, 0.127, 0.099, 0.205, 0.404, 1.441, 2.813]\n",
|
||
|
"dfx = [0.016, 0.006, 0.005, 0.006, 0.003, 0.002, 0.002,0.002, 0.003, 0.006, 0.024]\n",
|
||
|
"fz = [2.746, 1.278, 1.719, 1.058, 0.923, 0.994, 0.911, 1.157, 1.446, 2.191, 2.643]\n",
|
||
|
"dfz = [0.014, 0.007, 0.009, 0.007, 0.005, 0.004, 0.004, 0.005, 0.007, 0.009, 0.033]\n",
|
||
|
"\n",
|
||
|
"modulation_depth_axial = [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1]\n",
|
||
|
"fy = [3.08, 3.13, 3.27, 3.46, 3.61, 3.82, 3.51, 3.15, 3.11, 3.02]\n",
|
||
|
"dfy = [0.03, 0.04, 0.04, 0.05, 0.07, 0.06, 0.11, 0.07, 0.1, 1.31]\n",
|
||
|
"\n",
|
||
|
"plotMeasuredTrapFrequencies(fx, dfx, fy, dfy, fz, dfz, modulation_depth_radial, modulation_depth_axial, w_x, w_z, plot_against_mod_depth = True)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "4a4843d2",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot ratio of measured to calculated trap frequencies"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 11,
|
||
|
"id": "58cf3f64",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAagAAAEYCAYAAAAJeGK1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAurklEQVR4nO3de3xU1bn/8c+TECAIhh6DWEAJVTkWeyoKgkVbEpE7iv3Vc1pBRMGirfanp15PvRC09bRae2htq3AsUuw50v68VRHEWhO1WlrhhbWKUtFgi6iIyiVchITn98eeGSbDhEzIzOw95Pt+vfZrZl9m72dWknmy1l6zlrk7IiIiUVMUdgAiIiLpKEGJiEgkKUGJiEgkKUGJiEgkKUGJiEgkdQg7gLYoLy/3ioqKsMPIum3btnHIIYeEHUZBUFllTmWVOZVV5rJRVitWrNjo7j1Stxd0gqqoqGD58uVhh5F1tbW1VFZWhh1GQVBZZU5llTmVVeayUVZm9na67WriExGRSFKCEhGRSFKCEhGRSFKCEhGRSFKCEhGRSFKCEhGRSFKCE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qvMqawyp7JKL10nCY99lFc9s/ceVKF1klgHHJm03oegppTsQuD77u7AGjOrA44D/pyfEEVEZH9SO0lAbpN5vu5BvQgca2b9zKwj8DWC5rxkfwdGAJhZT+CfgbfyFJ+IiERMXmpQ7t5gZpcBSwm6mc9z91fN7JLY/ruBW4D5ZvZXgibBa919Yz7iExGR6Mnb96DcfTGwOGXb3UnP1wOj8hWPiIhEm4Y6EhGRSFKCEhGRSFKCEhGRSFKCEhGRSFKCEhGRSFK
|
||
|
"text/plain": [
|
||
|
"<Figure size 432x288 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"modulation_depth = [0.5, 0.3, 0.7, 0.9, 0.8, 1.0, 0.6, 0.4, 0.2, 0.1]\n",
|
||
|
"w_xs = w_x * convert_modulation_depth_to_alpha(modulation_depth)[0]\n",
|
||
|
"\n",
|
||
|
"v_x = np.zeros(len(modulation_depth))\n",
|
||
|
"v_y = np.zeros(len(modulation_depth))\n",
|
||
|
"v_z = np.zeros(len(modulation_depth))\n",
|
||
|
"\n",
|
||
|
"for i in range(len(modulation_depth)):\n",
|
||
|
" v_x[i] = calculateTrapFrequency(w_xs[i], w_z, Power, Polarizability, dir = 'x').value / 1e3\n",
|
||
|
" v_y[i] = calculateTrapFrequency(w_xs[i], w_z, Power, Polarizability, dir = 'y').value\n",
|
||
|
" v_z[i] = calculateTrapFrequency(w_xs[i], w_z, Power, Polarizability, dir = 'z').value / 1e3\n",
|
||
|
"\n",
|
||
|
"fx = [0.28, 0.690, 0.152, 0.102, 0.127, 0.099, 0.205, 0.404, 1.441, 2.813]\n",
|
||
|
"dfx = [0.006, 0.005, 0.006, 0.003, 0.002, 0.002,0.002, 0.003, 0.006, 0.024]\n",
|
||
|
"fy = [3.08, 3.13, 3.27, 3.46, 3.61, 3.82, 3.51, 3.15, 3.11, 3.02]\n",
|
||
|
"dfy = [0.03, 0.04, 0.04, 0.05, 0.07, 0.06, 0.11, 0.07, 0.1, 1.31]\n",
|
||
|
"fz = [1.278, 1.719, 1.058, 0.923, 0.994, 0.911, 1.157, 1.446, 2.191, 2.643]\n",
|
||
|
"dfz = [0.007, 0.009, 0.007, 0.005, 0.004, 0.004, 0.005, 0.007, 0.009, 0.033]\n",
|
||
|
"\n",
|
||
|
"plotRatioOfTrapFrequencies(fx, fy, fz, dfx, dfy, dfz, v_x, v_y, v_z, modulation_depth, w_x, w_z, plot_against_mod_depth = True)\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "44e92099",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot Feshbach Resonances"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 12,
|
||
|
"id": "d15205ff",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHwCAYAAAA2B95/AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAABvuklEQVR4nO3dd3yV5f3/8dfFBtlDQBBBZCOg4qwDtdbZarX1q9VWW1ut7a+t2qH222G/ra21yw5Hta5q66ioba17RBzMyh6SMIOMAAFCIARCrt8f1zmQhIz7jHud+/18PPK4k5Nz7vPh5pzknc91X9dtrLWIiIiISHK0CrsAEREREQmWAqCIiIhIwigAioiIiCSMAqCIiIhIwigAioiIiCRMm7ALyJfu3bvbI444IuwyYm3Hjh0cdNBBYZcRa1E7hjt3wuLFMHQodO8edjXeRO0YxlGQx3D9evjoIzjqKGjlY0uhogKKi2HkSAjin5bpMVy50tU4bpw/90/bswfmzYNBg6BPn/2319bC7NkwYAD06w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691WHUAJStAdwChdSWPVKjjssJbvp6VHomH3bnctYAVAJ0JvJRHJ1dq1bqsOoAQlqA7g3r1uG5UOYEWFCxNeA2Dr1sEuPaLJIgfSIvn1KQCKFJBM1iUTyYegJoHU1roQFRWrVrmtlwBYXh7O0iNRCctR4cdknDhTABQpIOkOoAKgBCWoIeC9e6M3/AveO4Aa/g2fAmB9EXo7iUiu1q1zq9xrnSsJSlBDwHHuACoARoMCYH0KgCIFZO1a6NcvWp0SKWxBDQFHsQPYrp23NeXSV5/IB53blz0FwPoi9HYSkVytW6c
|
||
|
"text/plain": [
|
||
|
"<Figure size 648x504 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"plotScatteringLengths(B_range = [0, 3.6])"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "1a2e113f",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Calculate and Plot Collision Rates and PSD"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 15,
|
||
|
"id": "86e9ba21",
|
||
|
"metadata": {
|
||
|
"scrolled": false
|
||
|
},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjgAAAGoCAYAAABL+58oAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAB0IklEQVR4nO3dd3iUVfbA8e8JoXdUBOkoooDBgoqCioq9gQ0UxY4oKqhr+7mWVbHurmUFFDu7KnZkXSSgLmIBBV1QQZDeRBBBkU7g/P44b2RIJskkmZl3ZnI+z/M+M/POW06GkJzce+69oqo455xzzmWS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BS1ODBNkfOpZf64JcKbcoUmwmyNMszRJOTA5s3w5w5cQnLOedSnSc4KapaNZvleM0a6NfPZzmusHJzbR6B7t3Ld52OHe3Ru6mccxVEUhIcEZ4XYaUI30V5708iqAi7Ruy7TYS5IswW4YSI/QeJ8G3w3hMilKPNPvXl5FhLzqhR8MILYUfjQpGbCwcfDA0alO86++xjsxp7guOcqyCS1YLzIlCojV2EZsBxwOKIfe2A3kD74JyhIlQK3h4G9APaBFs52+1T3w03QLduMHAgzJ8fdjQuqdasgS+/LPvoqUhVqtg6Vp7gOOcqiKQkOKpMBFZHeetR4GYgsgPmDGCkKptVWQDMBQ4RoTFQR5VJqigwAuiR2MjDl5Vlo6oqVfJZjiucDz6A7dvjk+CAj6RyzlUoodXgiHA6sEyV6QXeagIsiXi9NNjXJHhecH8R15d+IjJVRKbmpXlW0Ly5zY/z+ef
|
||
|
"text/plain": [
|
||
|
"<Figure size 576x432 with 2 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"AtomNumber = 1.00 * 1e7\n",
|
||
|
"BField = 1.4 * u.G\n",
|
||
|
"modulation_depth = np.arange(0, 1.0, 0.08)\n",
|
||
|
"\n",
|
||
|
"w_xs = w_x * convert_modulation_depth_to_alpha(modulation_depth)[0]\n",
|
||
|
"new_aspect_ratio = w_xs / w_z\n",
|
||
|
"Temperatures = convert_modulation_depth_to_temperature(modulation_depth)[0] * u.uK\n",
|
||
|
"\n",
|
||
|
"# n = np.zeros(len(modulation_depth))\n",
|
||
|
"Gamma_elastic = np.zeros(len(modulation_depth))\n",
|
||
|
"PSD = np.zeros(len(modulation_depth))\n",
|
||
|
"\n",
|
||
|
"for i in range(len(modulation_depth)):\n",
|
||
|
" # n[i] = particleDensity(w_xs[i], w_z, Power, Polarizability, N = AtomNumber, T = Temperatures[i], m = 164*u.u).decompose().to(u.cm**(-3))\n",
|
||
|
" Gamma_elastic[i] = calculateElasticCollisionRate(w_xs[i], w_z, Power, Polarizability, N = AtomNumber, T = Temperatures[i], B = BField).value\n",
|
||
|
" PSD[i] = calculatePSD(w_xs[i], w_z, Power, Polarizability, N = AtomNumber, T = Temperatures[i]).decompose().value\n",
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"plotCollisionRatesAndPSD(Gamma_elastic, PSD, modulation_depth, new_aspect_ratio, plot_against_mod_depth = True)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "74d353c9",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot Collision Rates and PSD from only measured trap frequencies"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 16,
|
||
|
"id": "6c81d9da",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjgAAAGoCAYAAABL+58oAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAABiiklEQVR4nO3dd5xU9fX/8dehiguCWBELxmgiGgUlamLDCiiKxgYiqDExyVejxsSoicY1lqiJ9afGaERFVxBjAQs2FHtDRRRsiCgIiop0Kbuc3x+fO+6w9c7uzNyZ2ffz8biPmblzy9lh2T37acfcHREREZFS0irpAERERESyTQmOiIiIlBwlOCIiIlJylOCIiIhIyVGCIyIiIiWnTdIBZEurVq28Q4cOSYchIiKSd8uWLXN3V6NFmpJJcDp06MDSpUuTDkNERCTvzOy7pGMoNMr2REREpOQowREREZGSowRHRERESo4SHBERESk5SnBERESk5CjBERERkZKjBEdERERKjhIcERERKTlKcERERKTkKMERERGRkqMER0REREqOEhwREREpOUpwREREpOQowREREZGSowRHRERESo4SHBER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vu+/gkUfW3LdwIVx2WTLxlDglOCKZqKiATTeFvfaCvfcO/em/+Q188UXogpE1LVwYFvPbfXc45pjc3KOsDI44Inz+332Xm3uIZMODD4ZJCumWLaud9EhWKMERievrr+Gxx8LAVrPq/dddF36Bn3givP12cvEVoosvDp/btdeu+Zll27BhsGgRPPRQ7u4h0lwjRsC
|
||
|
"text/plain": [
|
||
|
"<Figure size 576x432 with 2 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"fin_mod_depth = [0.5, 0.3, 0.7, 0.9, 0.8, 1.0, 0.6, 0.4, 0.2, 0.1]\n",
|
||
|
"v_x = [0.28, 0.690, 0.152, 0.102, 0.127, 0.099, 0.205, 0.404, 1.441, 2.813] * u.kHz\n",
|
||
|
"dv_x = [0.006, 0.005, 0.006, 0.003, 0.002, 0.002,0.002, 0.003, 0.006, 0.024] * u.kHz\n",
|
||
|
"v_z = [1.278, 1.719, 1.058, 0.923, 0.994, 0.911, 1.157, 1.446, 2.191, 2.643] * u.kHz\n",
|
||
|
"dv_z = [0.007, 0.009, 0.007, 0.005, 0.004, 0.004, 0.005, 0.007, 0.009, 0.033] * u.kHz\n",
|
||
|
"sorted_modulation_depth, sorted_v_x = zip(*sorted(zip(fin_mod_depth, v_x)))\n",
|
||
|
"sorted_modulation_depth, sorted_dv_x = zip(*sorted(zip(fin_mod_depth, dv_x)))\n",
|
||
|
"sorted_modulation_depth, sorted_v_z = zip(*sorted(zip(fin_mod_depth, v_z)))\n",
|
||
|
"sorted_modulation_depth, sorted_dv_z = zip(*sorted(zip(fin_mod_depth, dv_z)))\n",
|
||
|
"\n",
|
||
|
"fin_mod_depth = [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1] \n",
|
||
|
"v_y = [3.08, 3.13, 3.27, 3.46, 3.61, 3.82, 3.51, 3.15, 3.11, 3.02] * u.Hz\n",
|
||
|
"dv_y = [0.03, 0.04, 0.04, 0.05, 0.07, 0.06, 0.11, 0.07, 0.1, 1.31] * u.Hz\n",
|
||
|
"sorted_modulation_depth, sorted_v_y = zip(*sorted(zip(fin_mod_depth, v_y)))\n",
|
||
|
"sorted_modulation_depth, sorted_dv_y = zip(*sorted(zip(fin_mod_depth, dv_y)))\n",
|
||
|
"\n",
|
||
|
"fin_mod_depth = [1.0, 0.8, 0.6, 0.4, 0.2, 0.9, 0.7, 0.5, 0.3, 0.1]\n",
|
||
|
"T_x = [22.1, 27.9, 31.7, 42.2, 145.8, 27.9, 33.8, 42.4, 61.9, 136.1] * u.uK\n",
|
||
|
"dT_x = [1.7, 2.6, 2.4, 3.7, 1.1, 2.2, 3.2, 1.7, 2.2, 1.2] * u.uK\n",
|
||
|
"T_y = [13.13, 14.75, 18.44, 26.31, 52.55, 13.54, 16.11, 21.15, 35.81, 85.8] * u.uK\n",
|
||
|
"dT_y = [0.05, 0.05, 0.07, 0.16, 0.28, 0.04, 0.07, 0.10, 0.21, 0.8] * u.uK\n",
|
||
|
"\n",
|
||
|
"sorted_modulation_depth, sorted_T_x = zip(*sorted(zip(fin_mod_depth, T_x)))\n",
|
||
|
"sorted_modulation_depth, sorted_dT_x = zip(*sorted(zip(fin_mod_depth, dT_x)))\n",
|
||
|
"sorted_modulation_depth, sorted_T_y = zip(*sorted(zip(fin_mod_depth, T_y)))\n",
|
||
|
"sorted_modulation_depth, sorted_dT_y = zip(*sorted(zip(fin_mod_depth, dT_y)))\n",
|
||
|
"\n",
|
||
|
"modulation_depth = sorted_modulation_depth\n",
|
||
|
"\n",
|
||
|
"pd, dpd, T, dT, new_aspect_ratio = calculateParticleDensityFromMeasurements(sorted_v_x, sorted_dv_x, sorted_v_y, sorted_dv_y, sorted_v_z, sorted_dv_z, w_x, w_z, sorted_T_x, sorted_T_y, sorted_dT_x, sorted_dT_y, sorted_modulation_depth, AtomNumber, m = 164*u.u)\n",
|
||
|
"\n",
|
||
|
"Gamma_elastic = [(pd[i] * scatteringCrossSection(BField) * meanThermalVelocity(T[i]) / (2 * np.sqrt(2))).decompose() for i in range(len(pd))]\n",
|
||
|
"Gamma_elastic_values = [(Gamma_elastic[i]).value for i in range(len(Gamma_elastic))]\n",
|
||
|
"dGamma_elastic = [(Gamma_elastic[i] * ((dpd[i]/pd[i]) + (dT[i]/(2*T[i])))).decompose() for i in range(len(Gamma_elastic))]\n",
|
||
|
"dGamma_elastic_values = [(dGamma_elastic[i]).value for i in range(len(dGamma_elastic))]\n",
|
||
|
"\n",
|
||
|
"PSD = [((pd[i] * thermaldeBroglieWavelength(T[i])**3).decompose()).value for i in range(len(pd))]\n",
|
||
|
"dPSD = [((PSD[i] * ((dpd[i]/pd[i]) - (1.5 * dT[i]/T[i]))).decompose()).value for i in range(len(Gamma_elastic))]\n",
|
||
|
"\n",
|
||
|
"fig, ax1 = plt.subplots(figsize=(8, 6))\n",
|
||
|
"ax2 = ax1.twinx()\n",
|
||
|
"ax1.errorbar(modulation_depth, Gamma_elastic_values, yerr = dGamma_elastic_values, fmt = 'ob', markersize=5, capsize=5)\n",
|
||
|
"ax2.errorbar(modulation_depth, PSD, yerr = dPSD, fmt = '-^r', markersize=5, capsize=5)\n",
|
||
|
"ax2.yaxis.set_major_formatter(mtick.FormatStrFormatter('%.1e'))\n",
|
||
|
"ax1.set_xlabel('Modulation depth', fontsize= 12, fontweight='bold')\n",
|
||
|
"ax1.set_ylabel('Elastic Collision Rate (' + str(Gamma_elastic[0].unit) + ')', fontsize= 12, fontweight='bold')\n",
|
||
|
"ax1.tick_params(axis=\"y\", labelcolor='b')\n",
|
||
|
"ax2.set_ylabel('Phase Space Density', fontsize= 12, fontweight='bold')\n",
|
||
|
"ax2.tick_params(axis=\"y\", labelcolor='r')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "9329ee37",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Investigate deviation in alpha"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 28,
|
||
|
"id": "7b8191f2",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAagAAAEYCAYAAAAJeGK1AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAA120lEQVR4nO3dd3hT5f/G8feTdLfQAtWyqQzZskFBmYooyEZRUdxflCmKgKjgwIUiuAcI+lOpCrQgylCgIAooUBRlKYJAWWXT0tIm+fz+SIqU2ULbk6Sf13X1apMm59wNJXfPyZPnMSKCUkop5W1sVgdQSimlzkYLSimllFfSglJKKeWVtKCUUkp5JS0opZRSXinA6gB5FR0dLbGxsQW+n7S0NMLDwwt8PwVBs1tDs1vHl/Nrdli9evV+Ebns9Ot9rqBiY2NZtWpVge8nMTGR1q1bF/h+CoJmt4Zmt44v59fsYIz592zX6yk+pZRSXkkLSimllFcqlIIyxnxsjNlnjPnjlOtKGmO+N8b85flcojCyKKWU8g2FdQQ1Fehw2nUjgIUiUg1Y6LmslFJKAYU0SEJElhpjYk+7ugvQ2vP1J0AiMPxi9+Fyudi5cydpaWkXu4kcIiMj2bBhQ75sq7AV9ezh4eGUL18em03PYCvly0xhTRbrKag5IlLHc/mwiESd8v1DInLW03zGmIeAhwBiYmIaxcXFnXGboKAgoqOjiYmJyZcnJqfTid1uv+TtWKEoZ3e5XOzdu5f9+/eTmZmZj8kuLDU1lYiIiELdZ37x5ezg2/k1O7Rp02a1iDQ+/XqfGGYuIh8CHwI0btxYzjascfPmzcTGxhIUFJQv+zx27BjFihXLl20VtqKePTQ0FG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tWgTA/fffT0hI4Rxud+zYkdjYWLZs2UKbNm2Ijo4mPj6e0NBQ7rvvvnPe788//6Rfv34A1K5dm1dffRVwHyXecccdhZJdKXUBf/1A5uxHCTq2nRnOlswt8zDDe1zHlTHeM49nkS8ocJdUdlFlO3bsmEVp3B555BFsNhvvvPMO06ZNo0yZMowcOZKnn3660DKEh4ezcOFCnnjiCZYtW0ZGRgatWrXipZdeomrVque8X0pKCk6nE4B58+Yxb948APr27asFpZTVju3B8d0IAjbEs0PK8pJtDO079+SjRuWx2bxrmrBCW24jvzRu3FhWrVp1xvUbNmw4+XpNfijqM4JbJb+y5/fvQ2748qzUvpwdfDt/oWV3OWHVxzi+H4Mz6wRvZ3Vhb91+DO90FaUigi98/7PIr+zGGN9dbkMppdQl2P07WbMGEbgniRXO2nxYfAAPd7+Ra6qUsjrZeWlBKaWUvzqRimvxS7DyPY66InjRNYDYVn35qHUVggO8f1FTLSillPJHG78j85vHCErbxReOtiyp1J+R3a4hNjrc6mS5pgWllFL+5MhOsuYMI/Cv79jqqsCrgWPp0q07719VxufWStOCUkopf+B0IL98gHPhCzgdDl539Ca90cOM71CbyFDfnHxaC0oppXxd8moyEwYRlPIHPzrr8WmJgQzqeT0NKpawOtkl0YJSSilflXEU5w/PYVs1icMSxUsyhNo33M1HLa4gwO77EwVpQSmllK8RgfWzyPz2CQKO7+MTxw0kVe3P8K7NKBvlP+ukaUEppZS3O7YHpt8LPaeCI4Osb4YS+M8P/OWqxBshL3Pbrd24p1aM1Snzne8fA/qAorbke/Yy7vfcc885b9O6deuzPibZS75PnTqVqVOnnvU255oRXil/lJCUzMwJg3FtW8668Z3IfLMJWf8s4wXHXcxu9jkTH3uAG/ywnECPoP5z6l8oxQrmH7soLPnucDgufCOgZ8+e1K9fH4DPP/+c/fv
|
||
|
"text/plain": [
|
||
|
"<Figure size 432x288 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type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oxh+PDhDBs2jIEDB3L55ZdTUFDA4sWLadSoERkZGfTv35+PPvqIhx9+mMzMTBYuXBiOt86YyPMPDX/hBXj5Zdi50w0Dv+02N/2QdWVXXOCn3Mp4SU9P12BWrlwZ9PHDsWvXrpC9lqpqy5YtFSh1GTNmjMbHx2tKSoru2LFDCwoK9Pzzz1dAH330UVVVnT9/vh533HEaFxengH799df6n//8RwE999xzi9W8YsUKTU9P12rVquk555yjDz30kALarl27wv2++OILveCCC7R+/fqalJSkHTt21N27d6uq6syZMzU1NVVFRAHdtm2bFhQU6JQpU7Rdu3Zas2ZNrV+/vp5zzjn64osvqqpqfn6+jhw5Uhs2bKiNGzfWyZMnF/58S5cuPej7snLlSp0/f34o3+qIicW6Y7Fm1TDXPX26asuWqiLuevp01aws1YcfVj3hBFVQrV5dtW9f1XnzVHNzy/3SVfn9BhZrkL/fUQ+QcF9iMaAiIRZrtoCKrFisWTWMdU+frpqU5P5s+i9xcUW3zzlHdcoU1d9+O6yXr8rvd1kBZV18xhhzKKowYkTpFWkLCqBOHViyBFq1ik5tlZgFlDHGBLNzJ3z0Ebz/vrv8/HPw/XbtsnAKEwsoY4wBN/Ju0aKiQFq82LWc6tSB8893Mz7s3Fn6eVGcq66ys4AyxlRNqvDjj/DBBy6Q5s93IRQf75azGD0aevSAP/3JTTPkn+vMQ3PVVXYWUMaYqqNkt51/KYljj4VBg1wgdevmWk0llfU9Ew9NDVTZeCagROQiYAIQD0xR1UdLbK8DTAda4Ooeq6r/iXihxpjY4e+287eSvv7atZxq13bddvfd52Y
|
||
|
"text/plain": [
|
||
|
"<Figure size 432x288 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"Power = 40*u.W\n",
|
||
|
"Polarizability = 184.4 # in a.u, most precise measured value of Dy polarizability\n",
|
||
|
"Wavelength = 1.064*u.um\n",
|
||
|
"w_x, w_z = 27.5*u.um, 33.8*u.um\n",
|
||
|
"\n",
|
||
|
"options = {\n",
|
||
|
" 'axis': 0, # axis referenced to the beam along which you want the dipole trap potential\n",
|
||
|
" 'extent': 3e2, # range of spatial coordinates in one direction to calculate trap potential over\n",
|
||
|
" 'crossed': False,\n",
|
||
|
" 'delta': 70, # angle between arms in degrees\n",
|
||
|
" 'modulation': False,\n",
|
||
|
" 'aspect_ratio': 5, # required aspect ratio of modulated arm\n",
|
||
|
" 'gravity': False,\n",
|
||
|
" 'tilt_gravity': False,\n",
|
||
|
" 'theta': 0.75, # gravity tilt angle in degrees\n",
|
||
|
" 'tilt_axis': [1, 0, 0], # lab space coordinates are rotated about x-axis in reference frame of beam\n",
|
||
|
" 'astigmatism': True,\n",
|
||
|
" 'disp_foci': 2.5*u.mm, #0.9 * z_R(w_0 = np.asarray([30]), lamb = 1.064)[0]*u.um, # difference in position of the foci along the propagation direction (Astigmatism)\n",
|
||
|
" 'extract_trap_frequencies': False\n",
|
||
|
"}\n",
|
||
|
"\n",
|
||
|
"modulation_depth = np.arange(0, 1.1, 0.1)\n",
|
||
|
"Alphas, fin_mod_dep, meas_alpha_x, meas_alpha_z, dalpha_x, dalpha_z = convert_modulation_depth_to_alpha(modulation_depth) \n",
|
||
|
"meas_alpha_deviation = [(g - h) for g, h in zip(meas_alpha_x, meas_alpha_z)]\n",
|
||
|
"sorted_fin_mod_dep, sorted_meas_alpha_deviation = zip(*sorted(zip(fin_mod_dep, meas_alpha_deviation)))\n",
|
||
|
"avg_alpha = [(g + h) / 2 for g, h in zip(meas_alpha_x, meas_alpha_z)]\n",
|
||
|
"sorted_fin_mod_dep, new_aspect_ratio = zip(*sorted(zip(fin_mod_dep, (w_x * avg_alpha) / w_z)))\n",
|
||
|
"\n",
|
||
|
"current_ar = w_x/w_z\n",
|
||
|
"aspect_ratio = np.arange(current_ar, 10*current_ar, 0.8)\n",
|
||
|
"w_x = w_x * (aspect_ratio / current_ar)\n",
|
||
|
"\n",
|
||
|
"v_x = np.zeros(len(w_x))\n",
|
||
|
"#v_y = np.zeros(len(w_x))\n",
|
||
|
"v_z = np.zeros(len(w_x))\n",
|
||
|
"\n",
|
||
|
"for i in range(len(w_x)):\n",
|
||
|
" \n",
|
||
|
" options['axis'] = 0\n",
|
||
|
" ExtractedTrapFrequencies = computeTrapPotential(w_x[i], w_z, Power, Polarizability, options)[5]\n",
|
||
|
" tmp = ExtractedTrapFrequencies[0][0]\n",
|
||
|
" v_x[i] = tmp if not np.isinf(tmp) else np.nan\n",
|
||
|
" \n",
|
||
|
" # options['axis'] = 1\n",
|
||
|
" # ExtractedTrapFrequencies = computeTrapPotential(w_x[i], w_z, Power, Polarizability, options)[5]\n",
|
||
|
" # tmp = ExtractedTrapFrequencies[1][0]\n",
|
||
|
" # v_y[i] = tmp if not np.isinf(tmp) else np.nan\n",
|
||
|
" \n",
|
||
|
" options['axis'] = 2\n",
|
||
|
" ExtractedTrapFrequencies = computeTrapPotential(w_x[i], w_z, Power, Polarizability, options)[5]\n",
|
||
|
" tmp = ExtractedTrapFrequencies[0][0]\n",
|
||
|
" v_z[i] = tmp if not np.isinf(tmp) else np.nan\n",
|
||
|
"\n",
|
||
|
" #v_x[i] = calculateTrapFrequency(w_x[i], w_z, Power, Polarizability, dir = 'x').value\n",
|
||
|
" #v_y[i] = calculateTrapFrequency(w_x[i], w_z, Power, Polarizability, dir = 'y').value\n",
|
||
|
" #v_z[i] = calculateTrapFrequency(w_x[i], w_z, Power, Polarizability, dir = 'z').value\n",
|
||
|
"\n",
|
||
|
"alpha_x = [(v_x[0]/v)**(2/3) for v in v_x]\n",
|
||
|
"alpha_z = [(v_z[0]/v)**2 for v in v_z]\n",
|
||
|
"\n",
|
||
|
"calc_alpha_deviation = [(g - h) for g, h in zip(alpha_x, alpha_z)]\n",
|
||
|
"\n",
|
||
|
"plt.figure()\n",
|
||
|
"plt.plot(aspect_ratio, alpha_x, '-o', label = 'From horz TF')\n",
|
||
|
"plt.plot(aspect_ratio, alpha_z, '-^', label = 'From vert TF')\n",
|
||
|
"plt.xlabel('Aspect Ratio', fontsize= 12, fontweight='bold')\n",
|
||
|
"plt.ylabel('$\\\\alpha$', fontsize= 12, fontweight='bold')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.legend(prop={'size': 12, 'weight': 'bold'})\n",
|
||
|
"plt.show()\n",
|
||
|
"\n",
|
||
|
"plt.figure()\n",
|
||
|
"plt.plot(aspect_ratio, calc_alpha_deviation, '--ob', label = 'Extracted')\n",
|
||
|
"plt.plot(new_aspect_ratio, sorted_meas_alpha_deviation, '-or', label = 'Measured')\n",
|
||
|
"plt.xlabel('Aspect Ratio', fontsize= 12, fontweight='bold')\n",
|
||
|
"plt.ylabel('$\\\\Delta \\\\alpha$', fontsize= 12, fontweight='bold')\n",
|
||
|
"plt.ylim([-0.5, 1])\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.legend(prop={'size': 12, 'weight': 'bold'})\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "29a1cf87",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Quick calculation of PSD and elastic collision rate"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 17,
|
||
|
"id": "3950f1b5",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Particle Density = 1.87E+12 1 / cm3\n",
|
||
|
"Elastic Collision Rate = 37.24 1 / s\n",
|
||
|
"PSD = 2.50E-05 \n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"Power = 9.5*u.W\n",
|
||
|
"Polarizability = 184.4 # in a.u, most precise measured value of Dy polarizability\n",
|
||
|
"Wavelength = 1.064*u.um\n",
|
||
|
"w_x, w_z = 50*u.um, 45*u.um # Beam Waists in the x and y directions\n",
|
||
|
"\n",
|
||
|
"NCount = 11000\n",
|
||
|
"AtomNumber = calculateAtomNumber(NCount, pixel_size = 3.45 * u.um, magnification = 0.5, eta = 0.5)\n",
|
||
|
"\n",
|
||
|
"BField = 3.75 * u.G\n",
|
||
|
"modulation_depth = 0.00\n",
|
||
|
"\n",
|
||
|
"w_x = w_x * convert_modulation_depth_to_alpha(modulation_depth)[0]\n",
|
||
|
"new_aspect_ratio = w_x / w_z\n",
|
||
|
"Temperature = 33 * u.uK\n",
|
||
|
"\n",
|
||
|
"n = particleDensity(w_x, w_z, Power, Polarizability, N = AtomNumber, T = Temperature, m = 164*u.u).decompose().to(u.cm**(-3))\n",
|
||
|
"Gamma_elastic = calculateElasticCollisionRate(w_x, w_z, Power, Polarizability, N = AtomNumber, T = Temperature, B = BField)\n",
|
||
|
"PSD = calculatePSD(w_x, w_z, Power, Polarizability, N = AtomNumber, T = Temperature).decompose()\n",
|
||
|
"\n",
|
||
|
"print('Particle Density = %.2E ' % (n.value) + str(n.unit))\n",
|
||
|
"print('Elastic Collision Rate = %.2f ' % (Gamma_elastic.value) + str(Gamma_elastic.unit))\n",
|
||
|
"print('PSD = %.2E ' % (PSD.value))"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "d975586b",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot measured PSDs and collision rates"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 18,
|
||
|
"id": "b11b6aae",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjgAAAGoCAYAAABL+58oAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAABvSUlEQVR4nO3dd3hUdfb48fehVwVUlCZYsGBDwYqusdcV6yqCbVdZV3dRbIi6P92vZVcRxa7YAoJiRVnXtawKJigiKCKgKNKlqShSpATO749zx0ySIblJZuZOOa/nmWcy5d57EjFz8inniKrinHPOOZdL6kQdgHPOOedcsnmC45xzzrmc4wmOc84553KOJzjOOeecyzme4DjnnHMu59SLOoBkqVOnjjZu3DjqMJxzzrm0W7NmjaqqD1rEyZkEp3HjxqxevTrqMJxzzrm0E5Ffo44h03i255xzzrmc4wmOc84553KOJzjOOeecyzme4DjnnHMu53iC45xzzrmc4wmOc84553KOJzjOOeecyzme4DjnnHMu53iC45xzzrmc4wmOc84553KOJzjOOeecyzme4DjnnHP5QOQKRKYhMh2RKxO8Lojcj8gsRKYisl8NrjEwOH4mIscleH0MItNqEn515UyzTeecc85thsiewCXAAcB64E1E/oPqN3HvOgHoHNwOBB4J7sNeowtwDrAH0Bb4HyK7oLoxeP10YFWtv5eQfATHOeeSbfFiOPxwWLIk6khchhk5Ejp1gjp17H7kyLRdendgAqprUC0BxgGnlXtPT2A4qorqBKAFIm0AEOmDyEREpiDyGCJ1E1yjJzAK1XWozgFmYQkViDQDrgJuS8U3l4gnOM45l2zXXQfFxfB//xd1JC6DjBwJffvCvHmgavd9+6YtyZkG/A6RrRBpApwIdCj3nnbAgrjHC4F2iOwOnA30QLUrsBHoneAaiY83twKDgTW1/D5Cy5kpqlatWjF27Niow3DO5bHDjjuOuuvXlz7xyCPwyCNsbNCAorfeii4wlxGWL0+c8y5fDkn4+KonIpPiHg9V1aG/PVL9EpE7gXewaaLPgZJy55AE51XgKKAb8AkiAI2BZQnem/h4ka7Azqj2R6RTqO8mCXImwVm+fDkFBQVRh+Gcy2dz50KvXjBunD1u3BhOP526d99NwXbbRRqai96RR9rITXkisGlTrU9foqrdK32H6pPAk8FF78BGWOItpOyoTntgEZa4DEN1YJl3i5wG3Bw8uriS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8h0RKYh8hwijcq9Lojcj8gsRKYisl8NrjEwOH4mIscleH0MItNq/D1Ugyc4zjkXVlGRbQ1PR0W3li2hb18YNQrmzk399Vxos2bZP4Wsqn0j0g7oB3RHdU+gLnBOuXedAHQObn2BR6p5jS7BOfcAjgceRqRu3OunA6tq9g1Unyc4zjkXVnEx7L23rSxNh/797RP0nnvScz0XyvDhlueef37UkVRbPaAxIvWAJsCicq/3BIajqqhOAFog0gYAkT6ITERkCiKPlUlcyh4/CtV1qM4BZgEHBMc3A64CbkvFN5ZIvXRdSIT+wMWAAl8AF2E/4OeBTsBc4A+q/BS8fyDwJ2Aj0E+Vtyo7f6tWrRg7dmyKonfO5TspKeHQ8eNZfMIJzErj75rdjjqKbYYOZcJRR7Fhyy3Tdl23edtsYy3DvvnGbhminohMins8VFWH/vZI9TtE7gbmA78Cb6P6drlztAMWxD1eCLRDpAVwNtAD1Q2IPAz0BoYnOH5ChePNrcBgYE0NvrcaSUuCI0JsaKyLKr+K8AI2jNUFeFeVf4lwPXA9MECE+GGutsD/RNhFlc2W9ly+fDkFBQWp/la
|
||
|
"text/plain": [
|
||
|
"<Figure size 576x432 with 2 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"Gamma_elastic = [96.01, 82.53, 102.95, 143.5, 110.92, 471.77, 908.46]\n",
|
||
|
"PSD = [8.95e-05, 4.19e-04, 2.94e-04, 2.17e-04, 8.98e-04, 5.52e-04, 6.10e-04]\n",
|
||
|
"\n",
|
||
|
"fig, ax1 = plt.subplots(figsize=(8, 6))\n",
|
||
|
"ax2 = ax1.twinx()\n",
|
||
|
"\n",
|
||
|
"ax1.plot(Gamma_elastic, '-ob')\n",
|
||
|
"ax2.plot(PSD, '-*r')\n",
|
||
|
"ax2.yaxis.set_major_formatter(mtick.FormatStrFormatter('%.1e'))\n",
|
||
|
"\n",
|
||
|
"ax1.set_xlabel('Optimization Steps', fontsize= 12, fontweight='bold')\n",
|
||
|
"ax1.set_ylabel('Elastic Collision Rate', fontsize= 12, fontweight='bold')\n",
|
||
|
"ax1.tick_params(axis=\"y\", labelcolor='b')\n",
|
||
|
"ax2.set_ylabel('Phase Space Density', fontsize= 12, fontweight='bold')\n",
|
||
|
"ax2.tick_params(axis=\"y\", labelcolor='r')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "da1a3346",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Plot ideal crossed beam trap potential resulting for given parameters only"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 19,
|
||
|
"id": "f17a4d01",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD4CAYAAADo30HgAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAzdklEQVR4nO3deVxUZf//8dfFroCgLCqiIuCKIAq5Z9mmd19zS9NKs+y+vS2zxTvvtruyvexuubtbbFe7LS3LbLcsyyxTQVFARcEVVESUfWeu3x8M/sDYBmY4A3yej8c8mLnOnHPec2aYz5xzrnOO0lojhBBCVHIwOoAQQgj7IoVBCCFENVIYhBBCVCOFQQghRDVSGIQQQlTjZHSApvL19dVBQUFGxxBCiBYlNjb2jNbar6ZhLb4wBAUFERMTY3QMIYRoUZRSR2sbJpuShBBCVCOFQQghRDVSGIQQQlQjhUEIIUQ1UhiEEEJUI4VBCCFENVIYhBBCVNNmC8OB9Fye+24/ctpxIURLYzJpnvl2H8cyC2wy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I2OY1NSGOzAzIu6MzkygJc2HpD9DULYoZ/2p/Pm5kPcOKwHEyJa/ikv6iOFwQ4opXhqSjhBvu7ctTqOjFzZ3yCEvTiZXcg/Pt5Nvy6ePDxhgNFxmoUUBjvh7urE6zcOIbeolLvX7JL9DULYgbJyE3d+tIviMhOv3TgEN+fWu1+hKikMdqRflw48PnEgvyVn8t+fDhodR4g276WNB9hx5BxPTwknxM/D6DjNRgqDnZkeHcjUId34z48H+S1
|
||
|
"text/plain": [
|
||
|
"<Figure size 432x288 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {
|
||
|
"needs_background": "light"
|
||
|
},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"Powers = [35, 11] * u.W\n",
|
||
|
"Polarizability = 184.4 # in a.u, most precise measured value of Dy polarizability\n",
|
||
|
"Wavelength = 1.064*u.um\n",
|
||
|
"w_x = [27, 67]*u.um # Beam Waists in the x direction\n",
|
||
|
"w_z = [32, 67]*u.um # Beam Waists in the y direction\n",
|
||
|
"\n",
|
||
|
"options = {\n",
|
||
|
" 'axis': 1, # axis referenced to the beam along which you want the dipole trap potential\n",
|
||
|
" 'extent': 1e3, # range of spatial coordinates in one direction to calculate trap potential over\n",
|
||
|
" 'crossed': True,\n",
|
||
|
" 'delta': 70, # angle between arms in degrees\n",
|
||
|
" 'modulation': False,\n",
|
||
|
" 'aspect_ratio': 5, # required aspect ratio of modulated arm\n",
|
||
|
" 'gravity': False,\n",
|
||
|
" 'tilt_gravity': False,\n",
|
||
|
" 'theta': 0.75, # gravity tilt angle in degrees\n",
|
||
|
" 'tilt_axis': [1, 0, 0], # lab space coordinates are rotated about x-axis in reference frame of beam\n",
|
||
|
" 'astigmatism': False,\n",
|
||
|
" 'disp_foci': 2.5*u.mm, #0.9 * z_R(w_0 = np.asarray([30]), lamb = 1.064)[0]*u.um, # difference in position of the foci along the propagation direction (Astigmatism)\n",
|
||
|
" 'extract_trap_frequencies': False\n",
|
||
|
"}\n",
|
||
|
"\n",
|
||
|
"Positions, TrapPotential = computeTrapPotential(w_x, w_z, Powers, Polarizability, options)\n",
|
||
|
"\n",
|
||
|
"plt.figure()\n",
|
||
|
"plt.plot(Positions[options['axis']], TrapPotential[options['axis']], label = 'Crossed beam potential')\n",
|
||
|
"#plt.xlim([-500, 500])\n",
|
||
|
"#plt.ylim([-1800, -200])\n",
|
||
|
"plt.legend()\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "1a28b820",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Calculate trap frequencies in a crossed beam trap for given parameters"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 20,
|
||
|
"id": "09149423",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"v_x = 442.04 Hz\n",
|
||
|
"v_y = 459.15 Hz\n",
|
||
|
"v_z = 637.34 Hz\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"Powers = [1, 11] * u.W\n",
|
||
|
"w_x = [30, 50]*u.um # Beam Waists in the x direction\n",
|
||
|
"w_z = [30, 50]*u.um # Beam Waists in the y direction\n",
|
||
|
"\n",
|
||
|
"options = {\n",
|
||
|
" 'axis': 1, # axis referenced to the beam along which you want the dipole trap potential\n",
|
||
|
" 'extent': 1e3, # range of spatial coordinates in one direction to calculate trap potential over\n",
|
||
|
" 'crossed': True,\n",
|
||
|
" 'delta': 70, # angle between arms in degrees\n",
|
||
|
" 'modulation': False,\n",
|
||
|
" 'aspect_ratio': 5, # required aspect ratio of modulated arm\n",
|
||
|
" 'gravity': False,\n",
|
||
|
" 'tilt_gravity': False,\n",
|
||
|
" 'theta': 0.75, # gravity tilt angle in degrees\n",
|
||
|
" 'tilt_axis': [1, 0, 0], # lab space coordinates are rotated about x-axis in reference frame of beam\n",
|
||
|
" 'astigmatism': False,\n",
|
||
|
" 'disp_foci': 2.5*u.mm, #0.9 * z_R(w_0 = np.asarray([30]), lamb = 1.064)[0]*u.um, # difference in position of the foci along the propagation direction (Astigmatism)\n",
|
||
|
" 'extract_trap_frequencies': False\n",
|
||
|
"}\n",
|
||
|
"\n",
|
||
|
"v_x = calculateCrossedBeamTrapFrequency(options['delta'], [w_x, w_z], Powers, dir = 'x')\n",
|
||
|
"v_y = calculateCrossedBeamTrapFrequency(options['delta'], [w_x, w_z], Powers, dir = 'y')\n",
|
||
|
"v_z = calculateCrossedBeamTrapFrequency(options['delta'], [w_x, w_z], Powers, dir = 'z')\n",
|
||
|
"\n",
|
||
|
"print('v_x = %.2f ' %(v_x.value) + str(v_x.unit))\n",
|
||
|
"print('v_y = %.2f ' %(v_y.value) + str(v_y.unit))\n",
|
||
|
"print('v_z = %.2f ' %(v_z.value) + str(v_z.unit))"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"id": "712ec2c7",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"kernelspec": {
|
||
|
"display_name": "Python 3 (ipykernel)",
|
||
|
"language": "python",
|
||
|
"name": "python3"
|
||
|
},
|
||
|
"language_info": {
|
||
|
"codemirror_mode": {
|
||
|
"name": "ipython",
|
||
|
"version": 3
|
||
|
},
|
||
|
"file_extension": ".py",
|
||
|
"mimetype": "text/x-python",
|
||
|
"name": "python",
|
||
|
"nbconvert_exporter": "python",
|
||
|
"pygments_lexer": "ipython3",
|
||
|
"version": "3.9.7"
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 5
|
||
|
}
|