Diasaur

20 Reputation

One Badge

2 years, 68 days

MaplePrimes Activity


These are replies submitted by Diasaur

@ecterrab 

Hi, 

what I mean is beast shown in the following example:

with(Physics): Setup(quantumoperators={A,B,C,E})

A1=<<A|B>,<C| E>>

A1^(-1) = 1

I dont know how to get maple code in these replies, but I think this shows it quite well. When you set up a block matrix with entries that are quantumoperators, Maple gives 1 as the inverse. On the other hand MatrixInverse(A1) from LinearAlgebra gives an inverse as if A,B,C,E were scalar as usual.

So I worked around that with an inverse via the Schur-komplement (I think its called?), where if E as well as said Schur-Komplement are invertible one can directly give another expression for the inverse of a block matrix A1.

It could be though that this is expected since I am using these quantumoperators for matrix expressions ^^

I hope this example shows what I mean. Thanks for your help and I hope this helps clear up what I mean. As I said I have worked around that so this is already working for me.

Thank you all!

I was able to do it with Physics. I needed a workaround for the inverse of my matrix, but since it is a 2x2 block matrix with a controller I want to use, I just used the Schur Inversion.
The normal inversion (A^(-1)) of my matrix gave out a 1, which was really weird though and may be something to adress.

Also I made everything I used a quantumoperator even though I coundlt find anywhere what this actually does. So there might be unexpected (for me) behavior in the future but I guess I'll deal with that when I get there.

The noncommutativeprefix was something I considered. My initial problem here seems to come from the fact that you can only use numbers after the prefix? At least for me otherwise that didnt work. I tried setting the prefix to "nc", so that I can just use ncA,ncB,... but  that wouldnt work. We are working with Maple 2022 though, so it might have to do with that.

For now everything works fine and I could check my calculation and have a script to further work with, so thank you all very much! 
I dont know if or how one closes threads here, so for now I'll just leave it at that ^^

Thank you two!

I tried the Physics package but couldnt get it to work. After some testing and some comments by colleagues I tried to find another way, but I'll try to get Physics to work again when I get to work on monday and get back to you!

Thank you already for the exhaustive answers!

Page 1 of 1