Coder Social home page Coder Social logo

Comments (3)

martinarjovsky avatar martinarjovsky commented on July 19, 2024

A unitary matrix is defined as a matrix that has UU* = U*U = I with * the conjugate transpose. If you take the transpose instead of the conjugate transpose in your vector the transformation is not unitary.

Reflection by a complex vector uses therefore the dagger operator (or the conjugate transpose if you want to call it like that). Are you positive the code isn't doing that? I'll check the math in detail later.

from complex_rnn.

corcra avatar corcra commented on July 19, 2024

Thanks for the quick response. I see, of course the operator should be unitary! Does one still have the geometric interpretation of a rotation in this case, though?

Regarding the maths: to get the expression for the unitary version, it should (I think!) be sufficient to just change the sign of the imaginary part of the reflection (v_im) whenever it appeared in a dot product. Assuming the rest of the algebra is correct, this should result in: (compare with equation 2)

... which still doesn't reproduce the expressions for d-c and a+b! What am I missing here?

from complex_rnn.

corcra avatar corcra commented on July 19, 2024

I figured it out btw, your code is actually implementing the operator
codecogseqn
... which is also unitary, and just a reflection in the conjugate of v, so it's all good.

from complex_rnn.

Related Issues (5)

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.