Solving for a Unitary Matrix

asked 0 years ago

igor gravatar image

updated 0 years ago

Max Alekseyev gravatar image

Hello everyone,

I'm trying to replicate nearly the following in Sage: https://mathematica.stackexchange.com...

The linked post is asking for U such that A=UB¯UT but I am looking for the following:

Given 2 lists of vectors say A={a1,...,an}, B= {b1,...,bn}, is there a way to easily solve for a unitary matrix, U, such that {a1,...,an} = {Ub1,...,Ubn}.

I understand I can do the following:

U = H.solve_left(W)
U /= U.norm()
U.is_unitary()

but it doesn't seem every efficient, as there may be other solutions that I cannot see using this method. I am new to Sage and any advice would be super helpful!

Thank you

Preview: (hide)

Comments

Are you looking for any one solution or for all solutions?

Max Alekseyev gravatar imageMax Alekseyev ( 0 years ago )

I would be interested to see all possible solutions, but finding one Unitary Matrix satisfying the conditions would be enough for my purposes!

igor gravatar imageigor ( 0 years ago )

Are your "lists of vectors" form orthonormal bases by any chance?

Max Alekseyev gravatar imageMax Alekseyev ( 0 years ago )

Not necessarily, but from my list of vectors I guess I could extract a basis.

igor gravatar imageigor ( 0 years ago )