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

BtoF #522

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

BtoF #522

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@
automodapi_toctreedirnm = "code/api"
automodsumm_inherited_members = True

mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"
mathjax_path = (
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"
)

bibtex_bibfiles = ["references.bib"]

Expand Down Expand Up @@ -139,8 +141,7 @@
}
],
"extra_copyrights": [
"TensorFlow, the TensorFlow logo, and any related marks are trademarks "
"of Google Inc."
"TensorFlow, the TensorFlow logo, and any related marks are trademarks " "of Google Inc."
],
"google_analytics_tracking_id": "UA-116279123-2",
"prev_next_button_colour": "#b79226",
Expand Down
2 changes: 1 addition & 1 deletion mrmustard/lab_dev/states/dm.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def auto_shape(
try: # fock
shape = self.ansatz.array.shape[1:]
except AttributeError: # bargmann
if self.ansatz.polynomial_shape[0] == 0:
if self.ansatz.num_DV_vars == 0:
ansatz = self.ansatz
A, b, c = ansatz.A[0], ansatz.b[0], ansatz.c[0]
ansatz = ansatz / self.probability
Expand Down
2 changes: 1 addition & 1 deletion mrmustard/lab_dev/states/ket.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def auto_shape(
try: # fock
shape = self.ansatz.array.shape[1:]
except AttributeError: # bargmann
if self.ansatz.polynomial_shape[0] == 0:
if self.ansatz.num_DV_vars == 0:
ansatz = self.ansatz.conj & self.ansatz
A, b, c = ansatz.A[0], ansatz.b[0], ansatz.c[0]
ansatz = ansatz / self.probability
Expand Down
Loading
Loading