qml.devices.tf_ops.MultiRZ

MultiRZ(theta, n)[source]

Arbitrary multi Z rotation.

Parameters
  • theta (float) – rotation angle

  • n (int) – number of wires the rotation acts on

Returns

diagonal part of the MultiRZ matrix

Return type

tf.Tensor[complex]