Similar Items: Quantum Bayesian Networks: Compositionality and Typing via Linear Logic