English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Quaternion.normalize

Quaternion.normalize(inplace=False)[source]

Normalizes a Quaternion to unit length so that it represents a valid rotation.

Parameters

inplace (bool) – Do an inplace normalization.

Returns

Normalized quaternion.

Return type

Quaternion