Giter Club home page Giter Club logo

eigenvector-eigenvalue-identity's Introduction

Eigenvector-Eigenvalue Identity Code

This code generates a random Hermitian matrix of dimension n and then calculates the norm squared of the elements of the normed eigenvectors, |vi,j|2. It then verifies that the result is equivalent to that calculated with numpy. To use this code simply run the file as is to numerically verify the formula:

python E2.py
0.08307505701632452
0.08307505701632453
[[ True  True  True  True  True  True  True  True]
 [ True  True  True  True  True  True  True  True]
 [ True  True  True  True  True  True  True  True]
 [ True  True  True  True  True  True  True  True]
 [ True  True  True  True  True  True  True  True]
 [ True  True  True  True  True  True  True  True]
 [ True  True  True  True  True  True  True  True]
 [ True  True  True  True  True  True  True  True]]

where the first two numbers are |v0,1|2 calculated with the new formula and numpy and the array is the comparison of each element of each eigenvector.

Alternatively, import it into your own code as:

import E2
E2.vijsq(H, i, j)

which returns the norm square of the jth element of the ith eigenvector where H is a Hermitian matrix of numpy's matrix class, and i and j are indices 0 ≤ i,j ≤ n.

Formula

The new formula is:

E2 Equation

References

For further references see arXiv:1908.03795. We first discovered this in the context of neutrino oscillations in matter in arXiv:1907.02534. We believe that the first instance of anything like this expression appeared in Karl Löwner. Über monotone Matrixfunktionen. Math. Z., 38(1):177–216, 1934. The first instance of this expression seems to have appeared in R. C. Thompson. Principal submatrices of normal and Hermitian matrices. Illinois J. Math., 10:296–308, 1966. A related expression appeared in 1834 by Jacobi.

eigenvector-eigenvalue-identity's People

Contributors

parmarmanojkumar avatar peterdenton avatar sdabhi23 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.