Skip to content

Commit

Permalink
direct_prod_group fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mfinzi committed Mar 1, 2021
1 parent ffcdf9c commit 5e3d705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emlp/solver/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def noise2samples(zs,ks,lie_algebra,discrete_generators,seed=0):
class DirectProduct(Group):
def __init__(self,G1,G2):
I1,I2 = I(G1.d),I(G2.d)
self.lie_algebra = [lazy_kronsum([A1,0*I2]) for A1 in G1.lie_algebra]+[lazy_kronsum([0*I1,A2]) for A2 in G2.lie_algebra]
self.discrete_generators = [lazy_kron([M1,I2]) for M1 in G1.discrete_generators]+[lazy_kron([I1,M2]) for M2 in G2.discrete_generators]
self.lie_algebra = [LazyKronsum([A1,0*I2]) for A1 in G1.lie_algebra]+[lazy_kronsum([0*I1,A2]) for A2 in G2.lie_algebra]
self.discrete_generators = [LazyKron([M1,I2]) for M1 in G1.discrete_generators]+[lazy_kron([I1,M2]) for M2 in G2.discrete_generators]
self.names = (repr(G1),repr(G2))
super().__init__()

Expand Down

0 comments on commit 5e3d705

Please sign in to comment.