Diagonal phase shift gate.
theta (vector[float]) – phase shift angles
dim (tuple[int]) – register dimensions, default is len(theta),
len(theta),
the (diagonal) phase shift gate diag(exp(i*theta))
diag(exp(i*theta))
Lmap
qit.gate.mod_mul
qit.gate.plusdot