Topological aspects of gapped and gapless quantum matter