different take
separate scripts for anneal, optimze
one script
added 2d q1 qz vary function