Quantum ToolkitTypesLatticeMethodsto_indexOn this pageto_index Method of Lattice. to_index(const LatticeCoordinate coordinate) -> integer Computes the linear index for the given coordinate. If the coordinate isn't in the lattice, throws an exception. Parameters coordinate: Lattice coordinate.