Can someone suggest some online Mathematica codes/packages that deal with performing standard CFT computations like OPE expansions, computing different conformal blocks etc.

  • 1
    $\begingroup$ I'm voting to close this question as off-topic because it's a software recommendation and does not seem to meet the standards in this meta post that might qualify it to be considered differently. $\endgroup$
    – David Z
    Oct 10, 2017 at 23:11
  • $\begingroup$ @DavidZ, besides the fact that this question is generally of low quality, what is wrong with the topic? I am not sure how the links you provided have any relevance to this question. The first one actually cites this meta post which suggests that software which is only relevant to physicists is on-topic. And obviously nobody outside of physics cares (and would know) about tools for computations in CFTs. $\endgroup$ Oct 12, 2017 at 5:08
  • $\begingroup$ Relevant to the question, the OP should at least clarify what kind of CFT (2d/higher-d) they are talking about. $\endgroup$ Oct 12, 2017 at 5:11
  • $\begingroup$ If the question is off-topic please let me know which forum (of stack exchange, say) I should ask this question to. Thanks! $\endgroup$ Oct 12, 2017 at 6:11
  • $\begingroup$ @PeterKravchuk (3 comments up) The first one I linked is newer than the one you linked, and in the absence of a faq on the topic, I'll go by the newest one. That seems to indicate that we've chosen to make software recommendations off topic. $\endgroup$
    – David Z
    Oct 12, 2017 at 7:47

1 Answer 1


Conformal Bootstrap

A page by an associate professor at Brandeis University has provided a notebook to implement the Virasoro algebra in Mathematica, and compute conformal blocks. It can also teach Mathematica other operator algebras.

This paper also provides ancillary files which include notebooks that can be used to compute conformal blocks using an alternate method built upon in the paper.

Operator Product Expansion

A Mathematica package provides a means to compute crossing matrices and OPEs for special cases involving degenerate operators.

Finally, a package called Lambda has been designed to calculate $\lambda$-brackets, which can be related directly to show they are equivalent to evaluating OPEs for $d=2$ CFTs.

A bunch of files here and elsewhere on the site of the Mathematica summer school provides exercises and Mathematica notebooks which involve applying the conformal bootstrap. This includes the decomposition of conformal blocks and working in $d=4-\epsilon$ dimensions.


Not the answer you're looking for? Browse other questions tagged or ask your own question.