Tokyo University of Science
We successfully migrated to Python a number of years ago, but here is some old Matlab code which might be useful to play around with.
Matlab m files (also fine for Octave) to numerically solve the Bloch equations.
Matlab/Octave files demonstrating an example of stochastic resonance. The system simulated is that of a detector with a threshold. The applied signal has an amplitude less than the threshold and so can't be detected in principle. When noise is added, the signal detection is enhanced.
Matlab/Octave files for solving the hybrid mode eigenvalue equation for a step index optical fiber. The example solves the EVE to plot dispersion diagrams.
Matlab/Octave files for generating pulse waveforms for an AFG1302 pulse generator
Arduino sketch which allows for USB serial port controlled experimental sequencing and DC control of experimental equipment
Using only the standard c library, implements interface with the arduino Mega when it is loaded with the Xcontrol software above. Very easy to compile - just use the command given in the comments.
Unix (linux) shell script which shows how to use dcset to program an experiment
Arduino sketch which allows for current modulation and locking of a laser to a peak in an input saturated absorption spectrum signal.
Burning the arduino bootloader to a naked ATMega168 or 328P
Here are the commands and tricks I used to accomplish this apparently simple, but sometimes frustrating task.
Here we provide zip files of code used to produce figures in recently published papers. (Mark says: Because I wasn't been the laboratory leader until I moved to TUS, I ccouldn't make code and data available in general. From now, I hope to make code and data available for all papers written primarily by our group at TUS.) Note that these files contain code and data relating to published research. If you find any problems with the code or the data that might impact these results, we would appreciate it if you can alert us to the problem.
Python code for producing figures / doing calculations for our paper Polarization response and chirality for a nanofiber optical interface . Please note that this code was used to create material published in a scientific paper. If you find any mistakes in the code that you think might impact the results, please let me know.
Matlab code for producing figures / doing calculations for our paper Composite device for interfacing an array of atoms with a single nanophotonic cavity mode . Please note that this code was used to create material published in a scientific paper. If you find any mistakes in the code that you think might impact the results, please let me know.
Matlab code for producing figures / doing calculations for our paper Quantum coherent tractor beam effect for atoms trapped near a nanowaveguide. . Please note that the code includes crossing.m which is written by Steffen Brueckner and included here under the BSD license. Additionally, please note that this code was used to create material published in a scientific paper. If you find any mistakes in the code that you think might impact the results, please let me know.
All notes should be considered works in progress. I'd be happy to receive any feedback about them. Additionally, I probably shouldn't have to spell it out, but these notes do not represent original scholarly work, but are largely detailed derivations following existing material, sometimes following my own path to the results, and usually with copious commentary / musings. The notes should have relevant citations to original literature, but I don't guarantee an exhaustive bibliography.
Detailed derivation following two independent methods to give the band structure of a 1D photonic crystal. Matlab code to produce the band structure is included.
Detailed derivation of the near-field diffraction pattern from a square grating following Knop. This note clears up some ambiguity due to poor typesetting in the original Knop paper. Matlab code to produce the diffraction pattern is included.
Brief notes regarding how a dipole emitter couples to a nanofiber cavity.
For nanofiber cavities, intuitions about the equivalence between photon flux enhancement factor and the Purcell factor are not correct. This brief note derives a connection between the two factors
A useful "interpolation" method that I haven't seen written down anywhere else. Example Matlab code is included.
Move over expensive sequencing hardware, the time of cheap micro-controllers has come! This note, which is also available on the arxiv, regards a few different pieces of instrumentation I've made relying on timer interrupts in micro-controllers.