qubit_rotation
def
The 2x2 real matrix qubit_rotation t of type Matrix (Fin 2) (Fin 2) ℝ for a real parameter t : ℝ, with row 0 equal to ![(1 - t^2) / (1 + t^2), -2 * t / (1 + t^2)] and row 1 equal to ![2 * t / (1 + t^2), (1 - t^2) / (1 + t^2)].
Statement
noncomputable def qubit_rotation (t : ℝ) : Matrix (Fin 2) (Fin 2) ℝ
- Defined in
- OP-1440
- Verified
- 11 Nov 2026
- Axioms
- none listed
- Used by 1
- qubit_state_0The 2x2 real matrix qubit_state_0 a t of type Matrix (Fin 2) (Fin 2) ℝ for real parameters a, t : ℝ, defined as qubit_rotation t *…
Read back from the Lean
The definition qubit_rotation assigns to each real number $t \in \mathbb{R}$ the $2 \times 2$ real matrix
$$
\begin{pmatrix}
\frac{1 - t^2}{1 + t^2} & \frac{-2t}{1 + t^2} \\
\frac{2t}{1 + t^2} & \frac{1 - t^2}{1 + t^2}
\end{pmatrix}
$$
indexed by $\mathrm{Fin}\ 2 \times \mathrm{Fin}\ 2$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The 2x2 Cayley rotation matrix with parameter t. -/ noncomputable def qubit_rotation (t : ℝ) : Matrix (Fin 2) (Fin 2) ℝ := ![![ (1 - t^2) / (1 + t^2), -2 * t / (1 + t^2) ], ![ 2 * t / (1 + t^2), (1 - t^2) / (1 + t^2) ]]