Symmetry Groups#

class spacetime.symmetry_group.SymmetryGroup(symmetry_operations=[], label='')[source]#

Bases: object

SymmetryGroup class.

A SymmetryGroup contains spatial operations with optional binary reversal labels. It generates finite group closure from supplied operations, distinguishing equal spatial matrices with different reversal labels.

e.g.:

SymmetryGroup( symmetry_operations=[ s1, s2, s3 ] )

where s1, s2, and s3 are SymmetryOperation objects.

class_str = 'SymmetryGroup'#
property symmetry_operations#

List of symmetry transformations forming the group.

Parameters:

None

Returns:

List of symmetry operations.

property label#

Label of the symmetry group.

Parameters:

None.

Returns:

label.

Return type:

(str)

order(group_atol=0.0001)[source]#

Return the group order after validating the symmetry operations. :param group_atol: absolute tolerance of the matrix elements comparison. :type group_atol: float

Returns:

Order of the symmetry group.

add_and_generate(so, group_atol=0.0001)[source]#

Add a SymmetryOperation to this SymmetryGroup and generate the remaining elements from the current set of generators. :param so: The symmetry operation to add. :type so: SymmetryOperation :param group_atol: absolute tolerance of the matrix elements comparison. :type group_atol: float

Raises:

ValueError – If the symmetry-operation dimensions do not match.

Returns:

None

by_label(label)[source]#

Returns the SymmetryOperation with a matching label.

Parameters:

label (str) – The label identifying the chosen symmetry operation.

Returns:

The symmetry operation that matches this label.

Return type:

(SymmetryOperation)

property labels#

List the labels of the symmetry operations in this group.

Parameters:

None

Returns:

A list of label strings.

Return type:

(list)

is_invariant(physical_quantity, rtol=1e-06, atol=1e-14)[source]#

Check whether a physical quantity is invariant under this symmetry group.

Parameters:
  • physical_quantity (PhysicalQuantity) – Physical quantity to test.

  • rtol (float) – Relative tolerance used for comparisons.

  • atol (float) – Absolute tolerance used for comparisons.

Raises:

TypeError – If physical_quantity is not a PhysicalQuantity.

Returns:

Whether the quantity is invariant.

Return type:

bool

class spacetime.symmetry_group.LimitingSymmetryGroupAxial(axis=[1, 0, 0], symmetry_operations=[SymmetryOperation label(---) [[1. 0. 0.]  [0. 1. 0.]  [0. 0. 1.]] Dichromatic reversals: ], label='')[source]#

Bases: SymmetryGroup

Continuous axial Curie symmetry with compatible finite operations and optional binary reversal labels. The continuous rotations are not enumerated.

class_str = 'LimitingSymmetryGroupAxial'#
property axis#
property symmetry_operations#

List of symmetry transformations forming the group.

Parameters:

None

Returns:

List of symmetry operations.

is_invariant(physical_quantity, rtol=1e-06, atol=1e-14)[source]#

Check whether a physical quantity is invariant under this symmetry group.

Parameters:
  • physical_quantity (PhysicalQuantity) – Physical quantity to test.

  • rtol (float) – Relative tolerance used for comparisons.

  • atol (float) – Absolute tolerance used for comparisons.

Raises:

TypeError – If physical_quantity is not a PhysicalQuantity.

Returns:

Whether the quantity is invariant.

Return type:

bool

class spacetime.symmetry_group.LimitingSymmetryGroupScalar(scalar_symmetry_operations=[SymmetryOperation label(---) [[1. 0. 0.]  [0. 1. 0.]  [0. 0. 1.]] Dichromatic reversals: ], label='')[source]#

Bases: LimitingSymmetryGroupAxial

Isotropic Curie limiting symmetry for scalar and pseudoscalar quantities, with compatible spatial and binary reversal operations.

class_str = 'LimitingSymmetryGroupScalar'#
is_invariant(physical_quantity, rtol=1e-06, atol=1e-14)[source]#

Check whether a physical quantity is invariant under this symmetry group.

Parameters:
  • physical_quantity (PhysicalQuantity) – Physical quantity to test.

  • rtol (float) – Relative tolerance used for comparisons.

  • atol (float) – Absolute tolerance used for comparisons.

Raises:

TypeError – If physical_quantity is not a PhysicalQuantity.

Returns:

Whether the quantity is invariant.

Return type:

bool