Showing posts with label multilinear algebra. Show all posts
Showing posts with label multilinear algebra. Show all posts

Thursday, 29 October 2026

Quantum measurement and importance of Dirac's bra

Preamble

Optical Filter (Wikipedia)
Dirac and von Neumann's foundational work unified quantum mechanics into a coherent mathematical theory. While Albert Einstein's physical critiques were instrumental in highlighting the interpretation of the theory, the mathematical framework itself was established by Dirac and von Neumann. One overlooked concept in standard introductions is Dirac's bra, $\langle \phi |$, which is often taught merely as the complex conjugate transpose of a ket state $|\phi \rangle$. However, a deeper understanding emerges when we consider quantum measurements.

Born Rule: Transition Probability and Reference States

The primary probabilistic interpretation of quantum mechanics rests on the Born rule. When a system in state $|\psi \rangle$ is probed by a reference vector $\langle \phi |$, the probability of obtaining the outcome associated with $\phi$ (the "survival probability") is given by $P = | \langle \phi | \psi \rangle|^{2}$.

Here, it is crucial to understand the role of the bra. In this context, $\langle \phi |$ acts as an observer or measurement device. For example, in optics, a lens or a polarizing filter can be mathematically represented by a specific bra-vector that projects the incoming quantum state onto a particular mode.

Conclusion

We have highlighted the importance of the Dirac bra in the context of quantum measurements. While introductory textbooks often define the bra purely algebraically—as the Hermitian conjugate of a ket—it is physically more meaningful to view the bra as the state of the reference system used for measurement. Consequently, the bra carries physical significance only when it interacts with a ket state to compute a transition amplitude or probability. Therefore, suggesting that introductory lectures emphasize the bra solely as a mathematical operation, rather than introducing it as a physical reference system, might be pedagogically more appropriate.


This work can be cited as follows


 @misc{suezen26bra,
     title = {Quantum measurement and importance of Dirac's bra},
     howpublished =
{\url{https://science-memo.blogspot.com/2026/10/bra-quantum-measurment.html}},
author = {Mehmet Süzen},
     year = {2026}
}

Friday, 25 January 2013

Tensor Algebra: Efficient Operations on Multidimensional Arrays with R

 Multidimensional arrays are ubiquitous. Any complex problem having multivariate observables would easily generate a need to represent corresponding data in multidimensional arrays. Most of the practitioners would choose to apply operations on these objects with an index notation.  For example a 3-D array would have 3 indices A[i, j, k] or A[i][j][k] depending on the syntax. However there are languages which takes array operations as their native component, for example APL. More familiar examples are matrix operations in MATLAB, Fortran 90 and alike. Of course this concept is noting more than vectorisation.

Mathematical objects called tensors can be used to represent multidimensional objects. In reality a scalar is rank 0 tensor,  so scalar is the simplest tensor. Rank of a tensor can be thought as objects spatial dimension.  Let's consider matrix multiplication, where there are two indices, tensor of rank 2. If we have two matrices $A_{ij}$ and $B_{ij}$. We can multiply them with index notation as follows using an obscure language R with a naive algorithm:

> set.seed(42)
> A <- matrix(rnorm(4), 2, 2)
> B <- matrix(rnorm(4), 2, 2)
> C <- matrix(0, 2, 2)
> for(i in 1:2) {
+  for(j in 1:2) {
+   for(k in 1:2) {
+     C[i,j] = C[i,j] + A[i, k] * B[k,j]
+    }
+   }
+ }
> C
          [,1]       [,2]
[1,]  6.413566 -2.5178879
[2,] -2.249789  0.4908884
> A %*% B
           [,1]       [,2]
[1,]  0.5156982  2.0378605
[2,] -0.2954518 -0.9134599

You should have noticed that we introduce a third index. That is called a dummy index which we actually do the sum. This approach is technically called Einstein summation rule. So we represent the multiplication as follows: $C_{ij} = \sum_{k=1}^{m} A_{ik} B_{kj}$. Normally sum is dropped for short notation. It is quite intuitive from this notation that number of columns of A should be equal to number of rows in B to perform the sum consistently.

There are software packages that can do symbolic and numerical tensor algebra . Here we demonstrate an R package called tensorA developed by Professor van den Boogaart of TU Freiberg. We can repeat the matrix multiplication by using this package as follows.


> library("tensorA")
> set.seed(42)
> At <- to.tensor(rnorm(4), c(i=2, k=2))
> Bt <- to.tensor(rnorm(4), c(k=2, j=2))
> At %e% Bt
      j
i            [,1]       [,2]
  [1,]  0.5156982  2.0378605
  [2,] -0.2954518 -0.9134599
attr(,"class")
[1] "tensor" "matrix"

Note that here $\%e\%$ implies tensor multiplication with Einstein summation rule. This is pretty trivial example but if you imagine higher dimensional objects, tracking indices would be cumbersome so multi-linear algebra makes life easy.

In conclusion,  I think,  using tensor arithmetic for multidimensional arrays looks more compacts and efficient (~ 2-3 times).  A discussion related to this appeared in R help list.
(c) Copyright 2008-2024 Mehmet Suzen (suzen at acm dot org)

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.