treams.Lattice.__or__

Lattice.__or__(other)

Merge two lattices.

Two lattices are combined into one if possible.

Example

>>> Lattice(1, 'x') | Lattice(2)
Lattice([[2. 0.]
         [0. 1.]], alignment='zx')
Parameters:

other (Lattice) – Lattice to merge.

Returns:

Lattice