Japanese
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Quaternion.from_axis_rotation

classmethod Quaternion.from_axis_rotation(angle, axis)[ソース]

Return quaternion for rotation about given axis.

パラメータ
  • angle (float) – Angle in radians.

  • axis (str) – Axis for rotation

戻り値

Quaternion for axis rotation.

戻り値の型

Quaternion

例外

ValueError – Invalid input axis.