English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Quaternion.from_euler

classmethod Quaternion.from_euler(angles, order='yzy')[source]

Generate a quaternion from a set of Euler angles.

Parameters
  • angles (array_like) – Array of Euler angles.

  • order (str) – Order of Euler rotations. ‘yzy’ is default.

Returns

Quaternion representation of Euler rotation.

Return type

Quaternion