Using QPMS library for simulating finite systems ================================================