quantum diagrams