I am using sf.ops.Dgate and I was wondering what its matrix representation is. The formula for the D gate is

I know that alpha is a vector, but I am confused of what a is supposed to be / how to derive it.

I am using sf.ops.Dgate and I was wondering what its matrix representation is. The formula for the D gate is

I know that alpha is a vector, but I am confused of what a is supposed to be / how to derive it.