qit.gate.phase

qit.gate.phase(theta, dim=None)

Diagonal phase shift gate.

Parameters
  • theta (vector[float]) – phase shift angles

  • dim (tuple[int]) – register dimensions, default is len(theta),

Returns

the (diagonal) phase shift gate diag(exp(i*theta))

Return type

Lmap