Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorials for lab_dev and physics #392

Open
wants to merge 92 commits into
base: develop
Choose a base branch
from
Open

Tutorials for lab_dev and physics #392

wants to merge 92 commits into from

Conversation

sylviemonet
Copy link
Contributor


Context: Visualize the docs from this PR.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another general comment, some of this can be confusing if one has no idea of the concept of wires (potential 4 wires, in/out + bra/ket). Before a talk from Fillipo last week I had never heard about this idea before. Maybe it would be nice with a general intro or maybe a link to the wires channel that introduces this important concept that is used throughout (unless it is obvious to anyone in the CV community).

@sylviemonet sylviemonet removed the WIP work in progress label May 15, 2024
@sylviemonet sylviemonet changed the title Tutorials [DO NOT MERGE] Tutorials for lab_dev and physics May 15, 2024
:no-heading:
:include-all-objects:

This section of functions is the helper function section to calculate properties of object in Fock representation, which needs to be rearranged and possibly be moved under Fock representation class.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This section of functions is the helper function section to calculate properties of object in Fock representation, which needs to be rearranged and possibly be moved under Fock representation class.
This module contains helper functions to calculate properties of objects in Fock representation.

This module contains the classes for the available ansatze.

Ansatze are supposed to store the data related to the Representation and support basic mathematical operations.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Ansatze are supposed to store the data related to the Representation and support basic mathematical operations.
Ansatze store the data related to the Representation and support basic mathematical operations.


The wires in the diagram below correspond to the `out_ket` wires (:math:`\alpha^*`) and the `in_ket` wires (:math:`\beta`) in :class:`~mrmustard.lab_dev.wires.Wires`.

As for a ``n``-mode Gaussian Channel :math:`\langle \vec{\alpha}|\Psi(|\vec{\gamma}\rangle\langle\vec{\delta}|)|\vec{\beta}`, the variable vector denotes :math:`\vec{\alpha} = (\alpha^*_0, \alpha^*_1, ..., \alpha^*_{n-1}, \beta_0, \beta_1,..., \beta_{n-1}, \delta^*_0, \delta^*_1, ..., \delta^*_{n-1}, \gamma_0, \gamma_1,..., \gamma_{n-1})`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for channels the default order is out,in,out,in so alpha, delta, beta, gamma in your notation

║ |psi> ║─────▶ alpha^*_0 alpha_0─────▶║ U ║─────▶ beta^*_0
╚═══════╝ ╚═════╝
|
| integral on alpha
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what is the vertical line is for?

║ |psi> ║─────▶ alpha^*_0 alpha^*_0─────▶║ ║─────▶ beta^*_0
╚═══════╝ ╚═══════╝
|
| Add the ajoint part
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you mean this is "equality" or "follows", it's very confusing to me because it looks like a wire

.. code-block::

╔═══════╗ ╔═══════╗
║ |psi> ║─────▶ ║ DsMap ║─────▶
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a bit confusing because DsMap has ket and bra input

.. code-block::

╔═══════╗ ╔══════════════╗
║ |psi> ║─────▶ ║ BtoQMap.dual ║─────▶
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure? wouldn't this call the complex integral at the moment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation no changelog Pull request does not require a CHANGELOG entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants