Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Lab 11 · Quantum causal inference: common causes, cause–effect, and the map of the field

Levels 6–7 · Quantum causal models → Quantum Causal AI research · Prerequisite lessons: L6-01 (Quantum common causes), L6-02 (Channels in the Choi representation), L6-03 (Quantum DAGs and Markov assumptions), L6-05 (Discovery and informational access), L7-05 (Identifiability before quantum causal learning).

What you’ll learn

  • How to read a Bell/CHSH test as a causal-compatibility test for a graph with a hidden common cause. Why a quantum common cause escapes the classical bound Bell, 1964Clauser et al., 1969Allen et al., 2017.

  • How, in one specific measurement protocol, a quantum common cause (a shared state) and a quantum cause–effect link (a channel) fill two different tetrahedra of Pauli correlations. What that does and does not let you infer.

  • How quantum causal models, indefinite causal order, and quantum machine learning relate as research programs.

Open in Colab

Part A · Bell’s theorem as a causal-compatibility test

Consider the graph below. A hidden common cause Λ\Lambda influences both outcomes AA and BB. The settings XX and YY are chosen freely, and each influences only its own side. If Λ\Lambda is a classical variable, the graph implies

p(a,b∣x,y)=∑λp(λ) p(a∣x,λ) p(b∣y,λ),p(a,b\mid x,y)=\sum_\lambda p(\lambda)\,p(a\mid x,\lambda)\,p(b\mid y,\lambda),

and every such model satisfies ∣S∣≤2|S|\le2 for the CHSH combination Bell, 1964Clauser et al., 1969. Now suppose the common cause is a quantum system shared by the two sides. The Born rule replaces the sum, and ∣S∣|S| can reach 222\sqrt2. Allen et al. point out that Bell correlations cannot be explained the way Reichenbach’s principle would seem to demand. They develop a quantum version of that principle and of causal models Allen et al., 2017.

<Figure size 600x260 with 1 Axes>
5000 random classical common-cause models: max |S| = 2.0000
Loading...

Explain. No classical model of the graph exceeds ∣S∣=2|S|=2, as the theorem says. The deterministic ones reach the bound. A shared ∣Φ+⟩|\Phi^+\rangle reaches 222\sqrt2. In causal language, the observed distribution is incompatible with the graph if Λ\Lambda is classical, yet compatible if Λ\Lambda may be quantum. This reading still rests on the Bell-test assumptions: free settings, and no influence from XX to BB or from YY to AA. These are causal assumptions themselves.

Causal-compatibility constraints go beyond Bell inequalities. Chaves, Majenz, and Gross give a general algorithm for information-theoretic (entropic) constraints on the correlations that a given causal structure can produce Chaves et al., 2015. It applies to classical and quantum variables alike. We do not implement it here.

Part B · Common cause or cause–effect? A two-tetrahedra computation

Take two qubits, AA and BB, and two causal hypotheses:

  1. Common cause: AA and BB are two halves of a shared state ρAB\rho_{AB}, and both are measured.

  2. Cause–effect: AA is measured, then sent through a channel E\mathcal E to become BB, which is measured.

We use a single, fixed protocol for both. For each i∈{x,y,z}i\in\{x,y,z\}, measure σi\sigma_i on AA and σi\sigma_i on BB, and record the correlation ci=E[ab]c_i=\mathbb E[ab]. In the cause–effect case, AA starts maximally mixed, and the measurement on AA leaves it in the eigenstate it found. Then

cicc=Tr⁡ ⁣[ρAB σi⊗σi],cice=12Tr⁡ ⁣[σi E(σi)]=12Tr⁡ ⁣[(σi⊤⊗σi) J(E)],c_i^{\rm cc}=\operatorname{Tr}\!\big[\rho_{AB}\,\sigma_i\otimes\sigma_i\big],\qquad c_i^{\rm ce}=\tfrac12\operatorname{Tr}\!\big[\sigma_i\,\mathcal E(\sigma_i)\big]=\tfrac12\operatorname{Tr}\!\big[(\sigma_i^{\top}\otimes\sigma_i)\,J(\mathcal E)\big],

where JJ is the Choi matrix. Note that σy⊤=−σy\sigma_y^\top=-\sigma_y. So the cause–effect formula is not just the common-cause formula applied to the normalized Choi state J/2J/2: the yy component flips sign. The code simulates the measure-and-send protocol directly and checks this identity.

phi+  -> [ 1. -1.  1.]
phi-  -> [-1.  1.  1.]
psi+  -> [ 1.  1. -1.]
psi-  -> [-1. -1. -1.]
I     -> [1. 1. 1.]
X     -> [ 1. -1. -1.]
Y     -> [-1.  1. -1.]
Z     -> [-1. -1.  1.]

Now test which region each family occupies. A point is in the common-cause tetrahedron TccT_{\rm cc} when the four numbers 14(1+cx−cy+cz)\tfrac14(1+c_x-c_y+c_z), 14(1−cx+cy+cz)\tfrac14(1-c_x+c_y+c_z), 14(1+cx+cy−cz)\tfrac14(1+c_x+c_y-c_z), 14(1−cx−cy−cz)\tfrac14(1-c_x-c_y-c_z) are all ≥0\ge0. These are the Bell-state weights of the Bell-diagonal state with these correlations. A point is in the cause–effect tetrahedron TceT_{\rm ce} when 14(1+cx+cy+cz)\tfrac14(1+c_x+c_y+c_z), 14(1+cx−cy−cz)\tfrac14(1+c_x-c_y-c_z), 14(1−cx+cy−cz)\tfrac14(1-c_x+c_y-c_z), 14(1−cx−cy+cz)\tfrac14(1-c_x-c_y+c_z) are all ≥0\ge0. These are the Pauli-channel weights. TceT_{\rm ce} is the mirror image of TccT_{\rm cc} under cy→−cyc_y\to-c_y. Their intersection is the octahedron ∣cx∣+∣cy∣+∣cz∣≤1|c_x|+|c_y|+|c_z|\le1.

common-cause samples outside T_ce (unambiguous): 23.1%
cause-effect samples outside T_cc (unambiguous): 32.0%
twirling checks passed: states map to Bell-diagonal states, channels to Pauli channels, with c unchanged

The interactive figure shows both clouds and both tetrahedra. Rotate it, and use the buttons to show one family at a time. Blue: shared states. Red: channels.

Loading...

Explain. In this protocol:

  • every shared state lands in TccT_{\rm cc}, whose vertices are the four Bell states; every channel lands in TceT_{\rm ce}, whose vertices are the four Pauli unitaries;

  • the two regions are exactly these tetrahedra, not just “clouds inside” them. The sampled points are evidence, but the proof is short. The twirling checks above show that every state’s triple equals that of a Bell-diagonal state with weights wcc(c)≥0w_{\rm cc}(c)\ge0. Every channel’s triple equals that of a Pauli channel with weights wce(c)≥0w_{\rm ce}(c)\ge0. Conversely, mixtures of Bell states (or of Pauli unitaries) reach every point of the tetrahedron, and the map to cc is linear;

  • a point outside the octahedron is compatible with only one of the two hypotheses. Product states never leave the octahedron (checked above). Neither do their mixtures, since the octahedron is convex. So in this protocol, an unambiguous “common cause” verdict requires entanglement.

What this does not show. It does not handle mixtures of the two structures (probabilistic or coherent combinations). It does not handle a non-maximally-mixed input at AA, other measurement schemes, or finite-sample error. A point inside the octahedron leaves the question open. And it is not a general theorem about quantum versus classical causal discovery.

The question and the measure-and-send protocol of Part B come from Ried et al., who also report a photonic experiment Ried et al., 2015. They frame the result as a quantum advantage for causal inference. This lab does not adopt that framing.

Liu et al. give a full observational scheme that distinguishes five causal structures for a bipartite system measured at two times Liu et al., 2025. They work with the space-time pseudo-density matrix. They prove that, without signalling between the subsystems, its reduced state cannot have negativity. The computation above is a simpler, separate toy. It does not reproduce that paper. Costa and Shrapnel develop the broader framework of process-based quantum causal modelling, with quantum analogues of the causal Markov condition and faithfulness Costa & Shrapnel, 2016.

Part C · A map of the field

The concept graph below places the main ideas of this course’s last levels. Hover over a node for the reference. Colours mark the research program. Use the buttons to highlight one program.

nodeprogramreference
Structural causal models, do-calculusclassical causal inferencePearl, 2009
Causal discovery from independencesclassical causal inferenceSpirtes et al., n.d.Peters et al., 2017
Bell / CHSHbridgeBell, 1964Clauser et al., 1969
Quantum common causes, quantum Reichenbach principlequantum causal modelsAllen et al., 2017
Unitary-based quantum causal models, quantum d-separation and do-calculusquantum causal modelsBarrett et al., 2019
Process-based quantum causal modelling (Markov, faithfulness)quantum causal modelsCosta & Shrapnel, 2016
Entropic constraints on quantum causal structuresquantum causal modelsChaves et al., 2015
Causally neutral quantum Bayesian inferencequantum causal modelsLeifer & Spekkens, 2013
Causal tomography; common cause vs cause–effect from correlationsquantum causal modelsRied et al., 2015
Observational causal inference with the pseudo-density matrixquantum causal modelsLiu et al., 2025
Process matrices, causal inequalitiesindefinite causal orderOreshkov et al., 2012
Quantum combs, higher-order mapsindefinite causal orderChiribella et al., 2009
Quantum switchindefinite causal orderChiribella et al., 2013
Causal witnesses, causal nonseparabilityindefinite causal orderAraújo et al., 2015
Quantum machine learning overviewquantum machine learningBiamonte et al., 2017
Quantum circuit learningquantum machine learningMitarai et al., 2018
Parameter-shift gradientsquantum machine learningSchuld et al., 2019
Quantum kernelsquantum machine learningHavlicek et al., 2019
Barren plateaus; noise-induced plateausquantum machine learningMcClean et al., 2018Wang et al., 2021
Data and quantum advantage in learningquantum machine learningHuang et al., 2021
Classical shadowsquantum learning / estimationHuang et al., 2020
connected components: [['Bell / CHSH', 'Causal discovery', 'Causal tomography', '...'], ['Barren plateaus', 'Circuit learning', 'Classical shadows', '...']]
Loading...

Explain. In this map, quantum causal models connect to classical causal inference through Bell’s theorem and the do-calculus. They connect to indefinite causal order through process matrices, which Costa and Shrapnel’s framework builds on Costa & Shrapnel, 2016. Quantum machine learning forms its own component: none of the edges drawn here link it to causal modelling. The authors of this course chose the map as a teaching summary. It is not a bibliometric analysis. The code only checks its structure: two connected components, one of which contains only QML nodes and labs.

Going deeper: why the cause–effect correlations involve σ⊤\sigma^\top

Write J=∑jk∣j⟩⟨k∣⊗E(∣j⟩⟨k∣)J=\sum_{jk}|j\rangle\langle k|\otimes\mathcal E(|j\rangle\langle k|). For any operators M,NM,N,

Tr⁡[(M⊗N)J]=∑jk⟨k∣M∣j⟩Tr⁡[N E(∣j⟩⟨k∣)]=Tr⁡[N E(M⊤)].\operatorname{Tr}\big[(M\otimes N)J\big]=\sum_{jk}\langle k|M|j\rangle\operatorname{Tr}\big[N\,\mathcal E(|j\rangle\langle k|)\big]=\operatorname{Tr}\big[N\,\mathcal E(M^\top)\big].

With M=σi⊤M=\sigma_i^\top and N=σiN=\sigma_i this gives Tr⁡[σiE(σi)]\operatorname{Tr}[\sigma_i\mathcal E(\sigma_i)], the cause–effect correlation (times 2). Suppose you use the Choi state J/2J/2 as if it were a shared state. That silently replaces σy\sigma_y by −σy-\sigma_y on one side, and this is precisely the mirror that separates the two tetrahedra. The next cell checks the identity for random channels and random M,NM,N.

Tr[(M x N) J] = Tr[N E(M^T)] verified for 30 random channels

Exercises

Solution

The fourth common-cause weight is 14(1−cx−cy−cz)=14(1−3)=−12<0\tfrac14(1-c_x-c_y-c_z)=\tfrac14(1-3)=-\tfrac12<0. So (1,1,1)∉Tcc(1,1,1)\notin T_{\rm cc}. The observation is incompatible with any common cause in this protocol.

Solution

The triple is (0,0,1)(0,0,1), inside the octahedron, so it is compatible with both hypotheses. The correlation matrix is diag(0,0,1)\mathrm{diag}(0,0,1), so the Horodecki value is 21=22\sqrt{1}=2: no CHSH violation. Perfect ZZ correlation alone has a classical explanation (lesson L6-01).

Solution

The cause–effect weights are 14(1−3v)\tfrac14(1-3v) and three copies of 14(1+v)\tfrac14(1+v). All are ≥0\ge0 exactly when v≤1/3v\le1/3. That is also exactly where ρv\rho_v stops being entangled (concurrence max⁡(0,(3v−1)/2)\max(0,(3v-1)/2)). The Pauli channel with those weights produces the triple.

Check yourself

All checks passed.

Limits of this model

The Bell reading has assumptions. Classical incompatibility holds under the Bell assumptions: free settings, locality, fair sampling. These are causal assumptions, and experiments must defend them.

We used one protocol. Part B fixes Pauli measurements on both qubits and a maximally mixed input for the cause–effect case. Other protocols give different regions, and some distinguish more structures Liu et al., 2025.

We tested pure hypotheses only. Real systems may combine a common cause and a direct link, or be in a superposition of causal structures. We model neither.

The expectations are exact, with no finite-sample analysis. With data, a point near a face of the octahedron needs a confidence region before any verdict.

This is not an advantage claim. The computation shows a geometric fact about two model families. It does not show that quantum causal discovery is better than classical discovery for any practical task.

The map is a sketch. Part C summarizes a few connections. It is not a complete or neutral survey of the literature.

References
  1. Bell, J. S. (1964). On the Einstein Podolsky Rosen paradox. Physics Physique Fizika, 1(3), 195–200. 10.1103/physicsphysiquefizika.1.195
  2. Clauser, J. F., Horne, M. A., Shimony, A., & Holt, R. A. (1969). Proposed Experiment to Test Local Hidden-Variable Theories. Physical Review Letters, 23(15), 880–884. 10.1103/physrevlett.23.880
  3. Allen, J.-M. A., Barrett, J., Horsman, D. C., Lee, C. M., & Spekkens, R. W. (2017). Quantum common causes and quantum causal models. Physical Review X, 7(3). 10.1103/PhysRevX.7.031021
  4. Barrett, J., Lorenz, R., & Oreshkov, O. (2019). Quantum Causal Models. https://arxiv.org/abs/1906.10726
  5. Costa, F., & Shrapnel, S. (2016). Quantum causal modelling. New Journal of Physics, 18(6), 063032. 10.1088/1367-2630/18/6/063032
  6. Oreshkov, O., Costa, F., & Brukner, C. (2012). Quantum correlations with no causal order. Nature Communications, 3(1). 10.1038/ncomms2076
  7. Chiribella, G., D’Ariano, G. M., Perinotti, P., & Valiron, B. (2013). Quantum computations without definite causal structure. Physical Review A, 88(2). 10.1103/PhysRevA.88.022318
  8. Araújo, M., Branciard, C., Costa, F., Feix, A., Giarmatzi, C., & Brukner, Č. (2015). Witnessing causal nonseparability. New Journal of Physics, 17(10), 102001. 10.1088/1367-2630/17/10/102001
  9. Biamonte, J., Wittek, P., Pancotti, N., Rebentrost, P., Wiebe, N., & Lloyd, S. (2017). Quantum Machine Learning. Nature, 549(7671), 195–202. 10.1038/nature23474
  10. Chaves, R., Majenz, C., & Gross, D. (2015). Information-Theoretic Implications of Quantum Causal Structures. Nature Communications, 6(1). 10.1038/ncomms6766
  11. Ried, K., Agnew, M., Vermeyden, L., Janzing, D., Spekkens, R. W., & Resch, K. J. (2015). Inferring causal structure: a quantum advantage. Nature Physics, 11(5), 414–420. 10.1038/nphys3266
  12. Liu, X., Qiu, Y., Dahlsten, O., & Vedral, V. (2025). Quantum Causal Inference with Extremely Light Touch. Npj Quantum Information, 11(1). 10.1038/s41534-024-00956-0
  13. Pearl, J. (2009). Causal inference in statistics: An overview. Statistics Surveys, 3(none), 96–146. 10.1214/09-ss057
  14. Spirtes, Glymour, & Scheines. (n.d.). Causation, Prediction, and Search. https://www.cs.cmu.edu/afs/cs.cmu.edu/project/learn-43/lib/photoz/.g/web/.g/scottd/fullbook.pdf
  15. Peters, J., Janzing, D., & Scholkopf, B. (2017). Elements of Causal Inference. https://mitpress.mit.edu/9780262037310/elements-of-causal-inference/