This paper https://osf.io/paby6/ and this library https://github.com/dmi3kno/qpd are very interesting.