Skip to content

Commit

Permalink
small changes to the conventions page
Browse files Browse the repository at this point in the history
  • Loading branch information
josh146 committed Apr 13, 2018
1 parent db40984 commit 241eb6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Strawberry Fields depends on the following Python packages:
* `NumPy <http://numpy.org/>`_ >=1.13.3
* `SciPy <http://scipy.org/>`_ >=1.0.0
* `NetworkX <http://networkx.github.io/>`_ >=2.0
* `Tensorflow <https://www.tensorflow.org/>`_ >=1.3
* `Tensorflow <https://www.tensorflow.org/>`_ >=1.3,<1.7

These can be installed using pip, or, if on linux, using your package manager (i.e. ``apt`` if on a Debian-based system.)

Expand Down
4 changes: 2 additions & 2 deletions doc/conventions/gates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Squeezing
.. math::
& S(z) = \exp\left(\frac{1}{2}\left(z^* \a^2-z {\ad}^{2} \right) \right) = \exp\left(\frac{r}{2}\left(e^{-i\phi}\a^2 -e^{i\phi}{\ad}^{2} \right) \right)\\
& S^\dagger(z) \a S(z) = \a \cosh(r) -\ad e^{i \phi} \sinh r\\
& S^\dagger(z) \ad S(z) = \ad \cosh(r) -\ad e^{-i \phi} \sinh(r)
& S^\dagger(z) \ad S(z) = \ad \cosh(r) -\a e^{-i \phi} \sinh(r)
where :math:`z=r e^{i \phi}` with :math:`r \geq 0` and :math:`\phi \in [0,2 \pi)`.

Expand Down Expand Up @@ -264,7 +264,7 @@ A 50% or **50-50 beamsplitter** has :math:`\theta=\pi/4` and :math:`\phi=0` or :
and

.. math::
& B(\pi/4,\pi)\xket{x_1}\xket{x_2} = \xket{\frac{1}{\sqrt{2}}(x_1+x_2)}\xket{\frac{1}{\sqrt{2}}(x_2+x_1)}\\
& B(\pi/4,\pi)\xket{x_1}\xket{x_2} = \xket{\frac{1}{\sqrt{2}}(x_1+x_2)}\xket{\frac{1}{\sqrt{2}}(x_2-x_1)}\\
& B(\pi/4,\pi)\ket{p_1}_p\ket{p_2}_p = \xket{\frac{1}{\sqrt{2}}(p_1+p_2)}\xket{\frac{1}{\sqrt{2}}(p_2-p_1)}
Alternatively, **symmetric beamsplitter** (one that does not distinguish between :math:`\a_1` and :math:`\a_2`) is obtained by setting :math:`\phi=\pi/2`.
Expand Down

0 comments on commit 241eb6c

Please sign in to comment.