Skip to content

Commit

Permalink
Update quantum_clifford.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton authored Sep 3, 2023
1 parent 2e1c2bc commit ccf8400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/algebras/quantum_clifford.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,14 @@ def algebra_generators(self):
for i in range(self._n):
r = list(zero) # Make a copy
r[i] = 1
d['psi%s' % i] = self.monomial( (self._psi(r), one) )
d['psi%s' % i] = self.monomial((self._psi(r), one))
r[i] = -1
d['psid%s' % i] = self.monomial( (self._psi(r), one) )
d['psid%s' % i] = self.monomial((self._psi(r), one))
zero = self._psi(zero)
for i in range(self._n):
temp = list(zero) # Make a copy
temp[i] = 1
d['w%s' % i] = self.monomial( (zero, tuple(temp)) )
d['w%s' % i] = self.monomial((zero, tuple(temp)))
return Family(sorted(d), lambda i: d[i])

@cached_method
Expand Down

0 comments on commit ccf8400

Please sign in to comment.