Created
November 8, 2013 07:54
-
-
Save danieljfarrell/7367652 to your computer and use it in GitHub Desktop.
Attenuation of laser beam with crossed polarisers and optical isolators.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "metadata": { | |
| "name": "Polarisation matrix" | |
| }, | |
| "nbformat": 3, | |
| "nbformat_minor": 0, | |
| "worksheets": [ | |
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": "from sympy import *\n\nQWP = Matrix([[1,0],\n [0,-1j]]) # Quarter-WP\nLPH = Matrix([[1,0],\n [0,0]]) # Linear polariser horizontal\nLPV = Matrix([[0,0],\n [0,1]]) # Linear polariser horizontal\nLP45m = Matrix([[1,-1],\n [-1,1]]) # Linear polariser @+45\nLP45p = Matrix([[1,1],\n [1,1]]) # Linear polariser @-45\nREFL = Matrix([[1,0],\n [0,-1]]) # Reflection flips polaristaion like a half-WP", | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [], | |
| "prompt_number": 30 | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "metadata": {}, | |
| "source": "Optical isolater scheme" | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": "LP45p*QWP*REFL*REFL*REFL*QWP*LP45m", | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "latex": "$$\\left[\\begin{smallmatrix}{}0 & 0\\\\0 & 0\\end{smallmatrix}\\right]$$", | |
| "metadata": {}, | |
| "output_type": "pyout", | |
| "png": "iVBORw0KGgoAAAANSUhEUgAAACUAAAAXBAMAAAB+ApuWAAAALVBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAOrOgAAAADnRSTlMAdt3NMolEZlSrECLvmVCb\nLBYAAACWSURBVBgZY2AAAVFRZArMZg/gmABkQCmwEAOTA8MrIAtKMTAImTAwrNvAcAIoBqbYjRIY\nwoAcvwUM6nCKFS6mCBEDUjCxDQwHQWJgCiq2zoHhGVAMQkHFmBIg9oIpqBjjBbD7IBRUjCE2dgFQ\nL4SCiYEEYAAmhuxfqBiKf6FiTMj+hYoh+xfujwHwr5AK0FNI/mVUSgAA9S9Hg/PYtL4AAAAASUVO\nRK5CYII=\n", | |
| "prompt_number": 22, | |
| "text": "\u23a10 0\u23a4\n\u23a2 \u23a5\n\u23a30 0\u23a6" | |
| } | |
| ], | |
| "prompt_number": 22 | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "metadata": {}, | |
| "source": "Crossed polariser scheme" | |
| }, | |
| { | |
| "cell_type": "code", | |
| "collapsed": false, | |
| "input": "LPH*REFL*LPV", | |
| "language": "python", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "latex": "$$\\left[\\begin{smallmatrix}{}0 & 0\\\\0 & 0\\end{smallmatrix}\\right]$$", | |
| "metadata": {}, | |
| "output_type": "pyout", | |
| "png": "iVBORw0KGgoAAAANSUhEUgAAACUAAAAXBAMAAAB+ApuWAAAALVBMVEX///8AAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAOrOgAAAADnRSTlMAdt3NMolEZlSrECLvmVCb\nLBYAAACWSURBVBgZY2AAAVFRZArMZg/gmABkQCmwEAOTA8MrIAtKMTAImTAwrNvAcAIoBqbYjRIY\nwoAcvwUM6nCKFS6mCBEDUjCxDQwHQWJgCiq2zoHhGVAMQkHFmBIg9oIpqBjjBbD7IBRUjCE2dgFQ\nL4SCiYEEYAAmhuxfqBiKf6FiTMj+hYoh+xfujwHwr5AK0FNI/mVUSgAA9S9Hg/PYtL4AAAAASUVO\nRK5CYII=\n", | |
| "prompt_number": 32, | |
| "text": "\u23a10 0\u23a4\n\u23a2 \u23a5\n\u23a30 0\u23a6" | |
| } | |
| ], | |
| "prompt_number": 32 | |
| } | |
| ], | |
| "metadata": {} | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment