Let $A_{ij}$ be a $n\times n$ random binary matrix with probability mass function $P(A)$ given by $$ \log P(A)=-\frac 12 \mathrm{tr}\left[\left(A-M\right)^TV\left(A-M\right)\right] + C, $$ where $M$ and $V$ are also $n\times n$ matrices, $\mathrm{tr}$ denotes the trace of a matrix, $A^T$ is the transpose of $A$, and $C$ is a normalisation constant.
If $A$ was a real matrix, it would follow a matrix normal distribution and could be sampled easily. However, $A$ is a binary matrix in this problem. Is the above a known distribution? Is it possible to draw samples from it efficiently? I would like to avoid sampling the matrix using a Gibbs sampler.