================== :file:`1P_line.py` ================== Description ----------- This example propagates a 1 particle continuous-time quantum walk on an infinite line Amongst the features used, it illustrates: * recieving command line options using PETSc * the use of the chebyshev algorithm - setting the EigSolver tolerance * adding a diagonal defects to various nodes * creating node handles to watch the probability at specified nodes * various plotting abilities: - probability vs node plots - probability vs time plots Output ------------ .. image:: 1p_line_plot.png :width: 360pt .. image:: 1p_line_nodes.png :width: 360pt Source Code -------------------------------------------------------- [:download:`Download source code `] .. literalinclude:: /../examples/1P_line.py :linenos: