A Bayes Rule for Density Matrices