From: Michael Orlitzky Date: Fri, 29 Nov 2024 01:16:43 +0000 (-0500) Subject: mjo/eja/eja_operator.py: fix test when spin algebra is trivial X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d0b7ed5b21ca7538400c9f044b1d96d3bb077d23;p=sage.d.git mjo/eja/eja_operator.py: fix test when spin algebra is trivial --- diff --git a/mjo/eja/eja_operator.py b/mjo/eja/eja_operator.py index 19bcf96..0f1652a 100644 --- a/mjo/eja/eja_operator.py +++ b/mjo/eja/eja_operator.py @@ -775,8 +775,10 @@ class EJAOperator(Map): ....: orthonormalize=False) sage: n = J.dimension() sage: I = identity_matrix(J.base_ring(), 1) - sage: U = random_unitary_matrix(J.base_ring(), n-1) - sage: M = block_matrix(2, [I,0,0,U]) + sage: M = I + sage: if n >= 1: + ....: U = random_unitary_matrix(J.base_ring(), n-1) + ....: M = block_matrix(2, [I,0,0,U]) sage: L = EJAOperator(J,J,M) sage: L.is_isomorphism() True