Skip to content

Commit

Permalink
Increment the version number to v0.15 (and update changelog) (#236)
Browse files Browse the repository at this point in the history
* update changelog

* update

* add threshold detection to docs

Co-authored-by: Nicolas Quesada <[email protected]>
Co-authored-by: Josh Izaac <[email protected]>
  • Loading branch information
3 people committed Apr 23, 2021
1 parent 185afcc commit e0f2ace
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 19 deletions.
13 changes: 7 additions & 6 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Version 0.15.0-dev
# Version 0.15.0

### New features

* Adds the function `random_banded_interferometer` to generate unitary matrices with a given bandwidth. [#208](https://github.com/XanaduAI/thewalrus/pull/208)

* Adds the function `tvd_cutoff_bounds` to calculate bounds in the total variation distance between a Fock-truncated and an ideal GBS distribution. [#210](https://github.com/XanaduAI/thewalrus/pull/210)

* Adds function for calculating threshold detection probabilities for Gaussian states with displacement
[#220](https://github.com/XanaduAI/thewalrus/pull/220)
* Adds function for calculating threshold detection probabilities for Gaussian states with displacement. [#220](https://github.com/XanaduAI/thewalrus/pull/220)

* Adds new functions `total_photon_number_distribution` and `characteristic_function` to study properties of the total photon number distribution of a `k` identical lossy squeezers. [#230](https://github.com/XanaduAI/thewalrus/pull/230/)
* Adds new functions `total_photon_number_distribution` and `characteristic_function` to study properties of the total photon number distribution of a `k` identical lossy squeezers. [#230](https://github.com/XanaduAI/thewalrus/pull/230)

* Adds new functions `xxpp_to_xpxp` and `xpxp_to_xxpp` in the `symplectic` module to swap the ordering of the quadrature operators in vectors and matrices. [#237](https://github.com/XanaduAI/thewalrus/pull/237/)

Expand All @@ -20,14 +19,16 @@

* Refactors `setup.py` to avoid issues with `CFLAGS`. [#229](https://github.com/XanaduAI/thewalrus/pull/229)

* The `fidelity` function in `quantum/gaussian_checks.py` is rewritten to add clarity. [#226](https://github.com/XanaduAI/thewalrus/pull/226)

* Simplifies logic of `normal_ordered_expectation` by removing mutually cancelling `np.conj`. [#228](https://github.com/XanaduAI/thewalrus/pull/228)

### Bug fixes

* Removes unnecessary `np.real_if_close` statements in `quantum/fock_tensors.py` causing the `probabilities` to not be normalized. [#215](https://github.com/XanaduAI/thewalrus/pull/215)

* Fixes the prefactor in `pure_state_amplitude`. [#231](https://github.com/XanaduAI/thewalrus/pull/231)

### Breaking changes

### Contributors

This release contains contributions from (in alphabetical order):
Expand Down
1 change: 1 addition & 0 deletions docs/xanadu_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{# Do this so that bootstrap is included before the main css file #}
{%- block htmltitle %}
<link href="https://fonts.googleapis.com/css?family=Noto+Serif" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">

<!-- Font Awesome -->
Expand Down
14 changes: 3 additions & 11 deletions docs/xanadu_theme/static/xanadu.css_t
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
/* Sphinx themes
-------------------------------------------------- */
@font-face {
font-family: 'Product Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url(https://fonts.gstatic.com/s/productsans/v5/HYvgU2fE2nRJvZ5JFAumwegdm0LZdjqr5-oayXSOefg.woff2) format('woff2');
}



body {
/*background-color: #edf0f2;*/
Expand Down Expand Up @@ -105,7 +97,7 @@ h1, h2, h3, h4, h5, h6 {
color: black;
font-weight: normal;
padding: 0;
font-family: 'Product Sans', 'Roboto', sans-serif!important;
font-family: 'Noto Sans', 'Roboto', sans-serif!important;
}

h1, h2, h3 {
Expand Down Expand Up @@ -384,7 +376,7 @@ div.sphinxsidebar p {
margin: 20px 0px 10px 21px;
font-weight: normal;
padding: 0;
font-family: 'Product Sans', 'Roboto', sans-serif!important;
font-family: 'Noto Sans', 'Roboto', sans-serif!important;
font-size: 24px;
color: #515151;
/*text-align: center;*/
Expand Down Expand Up @@ -2064,7 +2056,7 @@ footer.page-footer .footer-copyright {
margin-left: 20px;
font-size: initial;
color: black;
font-family: 'Product Sans', 'Roboto', sans-serif !important;
font-family: 'Noto Sans', 'Roboto', sans-serif !important;
margin-bottom: -9px;
border-bottom: 3px solid;
border-bottom-color: white;
Expand Down
2 changes: 1 addition & 1 deletion thewalrus/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.15.0-dev"
__version__ = "0.15.0"
19 changes: 18 additions & 1 deletion thewalrus/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
torontonian_sample_state
torontonian_sample_graph
torontonian_sample_classical_state
threshold_detection_prob
threshold_detection_prob_displacement
Brute force sampling
--------------------
Expand All @@ -55,7 +57,7 @@
from scipy.special import factorial as fac

from ._hafnian import hafnian, reduction
from ._torontonian import tor
from ._torontonian import tor, threshold_detection_prob, threshold_detection_prob_displacement
from .quantum import (
Amat,
Covmat,
Expand All @@ -67,6 +69,21 @@
density_matrix_element,
)

__all__ = [
"generate_hafnian_sample",
"hafnian_sample_state",
"hafnian_sample_graph",
"hafnian_sample_classical_state",
"hafnian_sample_graph_rank_one",
"generate_torontonian_sample",
"torontonian_sample_state",
"torontonian_sample_graph",
"torontonian_sample_classical_state",
"threshold_detection_prob",
"threshold_detection_prob_displacement",
"photon_number_sampler",
]

# ===============================================================================================
# Hafnian sampling
# ===============================================================================================
Expand Down

0 comments on commit e0f2ace

Please sign in to comment.