Arbitrary operation in Fock Backend

Is it possible to apply an arbitrary matrix on a qumode in the Fock backend?

Hi @Omar_Ibna_Nazim ,

I don’t know but you can try using an interferometer and testing to see if you obtain the results you expect.

There is also PassiveChannel and Ggate which perform arbitrary passive transformations and Gaussian unitaries respectively.

I’m not sure if these will work for you.

I hope this helps!

Side note: I’m not sure why Ggate isn’t in the main docs page but you can indeed find it within sf.ops (as seen here).