Regarding vertex, element and quadrature points

I am currently working on adaptive methods and need to access quadrature points and weights, vertices associated with an element, and the centroid of the element. I found a few tricks to do it in legacy fenics but not in Fenicsx. can anyone point out at right resource?

Regards
Ankit

Quadrature points are defined with Basix, as explained in
How does the symbolic simplification in UFL works? - #4 by dokken (Syntax is a bit out of date, But should be easy to change).

To Get vertices see: Getting coordinates of facets in dolfinx - #2 by dokken
Here you replace the facet dimension with the cell dimension.

For midpoints see dolfinx.mesh — DOLFINx 0.5.1 documentation