Quantum d-separation and quantum belief propagation