def test_restrict_rr_cyclic_even_cyclic_even(self):
     dg = CyclicGroup(16)
     repr = dg.regular_representation
     sg_id = 8
     self.check_disentangle(dg.restrict_representation(sg_id, repr))
 def test_restrict_rr_cyclic_odd_cyclic_odd(self):
     dg = CyclicGroup(15)
     repr = dg.regular_representation
     sg_id = 5
     self.check_disentangle(dg.restrict_representation(sg_id, repr))
 def test_restrict_irreps_cyclic_even_cyclic_odd(self):
     dg = CyclicGroup(10)
     sg_id = 5
     for name, irrep in dg.irreps.items():
         self.check_disentangle(dg.restrict_representation(sg_id, irrep))