We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 408dd26 commit 7718036Copy full SHA for 7718036
physics/multipolar_wave.py
@@ -50,6 +50,17 @@ def __init__(
50
self.amplitudes = arr
51
self.metadata = metadata
52
53
+ # ------------------------------------------------------------------
54
+ def probability_tensor(self) -> np.ndarray:
55
+ """Return the full density matrix ρ = |ψ⟩⟨ψ|.
56
+
57
+ The tensor keeps interference information between all poles and
58
+ complements :meth:`probability_density`, which returns only the
59
+ scalar Σ|ψ|² scaled by k/2.
60
+ """
61
62
+ return np.outer(self.amplitudes, np.conj(self.amplitudes))
63
64
# ------------------------------------------------------------------
65
def copy(self) -> "MultiConjugateFunction":
66
"""Return a duplicate wave, keeping metadata and n-conjugate count."""
0 commit comments