Quantum ToolkitTypesLatticeMethodsnum_sitesOn this pagenum_sites Method of Lattice. num_sites() -> integer Returns the number of unit cells in the lattice.