diffusemat shared state