first so-so version, TODO - add rescaling
Merge branch 'master' of https://github.com/EugeneGlushkov/qubitEnergy