<commit_before>{% comment %}<!--
The `mathjax_support` add the support for the MathJax. It must be used in the
`<head>..</head>` part of a HTML page.

With the MathJax support, you can use the LaTeX syntax to typeset mathematical
formula in your post:
 - Use `$$...$$` for inline formula.
 - Use `$$...$$` for display formula, but before the first `$$` and after the
   last `$$` there must be either an empty line, or a line with a single `^` 
   character.

Usage:
  1. include `mathjax_support`

Example:

The following is an example page layout:
  
    <!DOCTYPE html>
    <html>
      <head>
        {% include html_meta %}
        ...
        {% include mathjax_support %}
      </head>
      <body>
        ...
        {{ content }}
        ...
      </body>
    </html>

The following is an example post:

    ---
    layout: post
    title: "Represents the pure state of a qubit using a Bloch sphere"
    author: <NAME>
    category: research
    tags: [quantum computing, qubit, Bloch sphere]
    use_math: true
    ---
    
    Let $$z=x+iy$$ be a complex number, where $$x$$ and $$y$$ are real numbers,
    and $$i$$ is the imaginary unit. Let
    
    $$
     r=|z|^2 = x^2 + y^2
    $$
    
    be the norm of $$z$$. Then the complex number $$z$$ could be considered as
    a point $$Z$$ on the circle with the origin $$O$$ as its center and $$r$$
    as its radius.

-->{% endcomment %}

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    TeX: { 
      equationNumbers: { 
        autoNumber: "AMS" 
      } 
    },
    tex2jax: {
      inlineMath: [ ['$','$'] ],
      displayMath: [ ['$$','$$'] ],
      processEscapes: true,
    }
  });
</script>
<script type="text/javascript"
        src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script><commit_msg>Oyyyyy those square brackets got me again<commit_after>{% comment %}<!--
The `mathjax_support` add the support for the MathJax. It must be used in the
`<head>..</head>` part of a HTML page.

With the MathJax support, you can use the LaTeX syntax to typeset mathematical
formula in your post:
 - Use `$$...$$` for inline formula.
 - Use `$$...$$` for display formula, but before the first `$$` and after the
   last `$$` there must be either an empty line, or a line with a single `^` 
   character.

Usage:
  1. include `mathjax_support`

Example:

The following is an example page layout:
  
    <!DOCTYPE html>
    <html>
      <head>
        {% include html_meta %}
        ...
        {% include mathjax_support %}
      </head>
      <body>
        ...
        {{ content }}
        ...
      </body>
    </html>

The following is an example post:

    ---
    layout: post
    title: "Represents the pure state of a qubit using a Bloch sphere"
    author: <NAME>
    category: research
    tags: [quantum computing, qubit, Bloch sphere]
    use_math: true
    ---
    
    Let $$z=x+iy$$ be a complex number, where $$x$$ and $$y$$ are real numbers,
    and $$i$$ is the imaginary unit. Let
    
    $$
     r=|z|^2 = x^2 + y^2
    $$
    
    be the norm of $$z$$. Then the complex number $$z$$ could be considered as
    a point $$Z$$ on the circle with the origin $$O$$ as its center and $$r$$
    as its radius.

-->{% endcomment %}

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    TeX: { 
      equationNumbers: { 
        autoNumber: "AMS" 
      } 
    },
    tex2jax: {
      inlineMath: [ ['$','$'], ['\(', '\)'] ],
      displayMath: [ ['$$','$$'] ],
      processEscapes: true,
    }
  });
</script>
<script type="text/javascript"
        src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
{'fraction_non_alphanumeric': 0.15230352303523034, 'fraction_numerical': 0.0027100271002710027, 'mean_word_length': 2.3162623539982032, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6921843', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1176, 'n_words': 403}