configure matrix backend from qdpack.h