minor modifications to quantum_dot.py