Skip to content

Commit

Permalink
more renaming process, added simple logo
Browse files Browse the repository at this point in the history
  • Loading branch information
phfaist committed Jul 5, 2018
1 parent 0af71e0 commit 2a65454
Show file tree
Hide file tree
Showing 25 changed files with 4,060 additions and 392 deletions.
1,096 changes: 1,096 additions & 0 deletions QPtomographer.ai

Large diffs are not rendered by default.

1,956 changes: 1,956 additions & 0 deletions QPtomographer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions QPtomographer/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@


# A namespace to hold attributes
#
# Do NOT change this class name or relocate it. Pickled output may use this
# class and it needs to be reliably there to be able to load pickled files.
#
class _Store(object):
def __init__(self, **kwargs):
super(_Store, self).__init__()
Expand Down
1 change: 1 addition & 0 deletions doc/_static/QPtomographer.svg
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
# documentation.
#
html_theme_options = {
'logo': 'QPtomographer.svg',
'font_family': '"PT Serif", sans-serif',
'font_size': '16px',
'head_font_family': '"Roboto", sans-serif',
Expand Down
10 changes: 5 additions & 5 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Installation instructions
-------------------------

The `QPtomographer` package is uses the standard `setuptools` Python
The `QPtomographer` package uses the standard `setuptools` Python
infrastructure, providing a `setup.py` script like most other Python packages.

There are some little things to set up first however.
Expand All @@ -13,13 +13,13 @@ Compiling SCS
First, you need to compile `SCS ≥ 2.0 <https://github.com/cvxgrp/scs>`_. We make
use of this great library to calculate the diamond norm distance between two
channels. (Unfortunately, it is not enough to install the `scs` Python package,
because we need SCS' C interface.)
because we need SCS's C interface.)

Make sure you have downloaded SCS version 2.0.0 or later.

Download (or clone) `SCS ≥ 2.0 <https://github.com/cvxgrp/scs>`_, say to
``$HOME/Downloads/scs``, and compile it with specific options set. This can be
done with the following steps using the command-line.
Download (or clone) `SCS <https://github.com/cvxgrp/scs/releases>`_, say
to ``$HOME/Downloads/scs``, and compile it with specific options set. This can
be done with the following steps using the command-line.

First, clone SCS into your `Downloads` directory, and enter that directory.
(You may choose a different directory; the following instructions however assume
Expand Down
Empty file modified examples/2qubits-noisy-identity/_CACHE_meas_data.dat
100755 → 100644
Empty file.
Empty file modified examples/2qubits-noisy-identity/_CACHE_r_Fe_elr.dat
100755 → 100644
Empty file.
Empty file modified examples/2qubits-noisy-identity/_CACHE_r_Fe_naiveopt.dat
100755 → 100644
Empty file.
Empty file modified examples/2qubits-noisy-identity/_CACHE_r_eiH.dat
100755 → 100644
Empty file.
Empty file modified examples/2qubits-noisy-identity/_CACHE_r_elr.dat
100755 → 100644
Empty file.
Empty file modified examples/2qubits-noisy-identity/_CACHE_r_elr_long.dat
100755 → 100644
Empty file.
Empty file modified examples/2qubits-noisy-identity/_CACHE_r_naive.dat
100755 → 100644
Empty file.
Empty file modified examples/2qubits-noisy-identity/_CACHE_r_naiveopt.dat
100755 → 100644
Empty file.
Empty file modified examples/2qubits-noisy-identity/_CACHE_r_wFe_elr.dat
100755 → 100644
Empty file.
Empty file modified examples/2qubits-noisy-identity/_CACHE_r_wFe_naiveopt.dat
100755 → 100644
Empty file.
Binary file modified examples/2qubits-noisy-identity/comparison_plot_Fe_wFe.pdf
Binary file not shown.
27 changes: 14 additions & 13 deletions examples/2qubits-noisy-identity/run.ipynb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"\n",
"# use this to load pickle files saved with our old python code\n",
"sys.modules['pydnorm_util'] = QPtomographer.util\n",
"sys.modules['dnormtomo'] = QPtomographer\n",
"QPtomographer.util._Ns = QPtomographer.util._Store\n",
"\n",
"import qutip\n",
Expand Down Expand Up @@ -593,7 +594,7 @@
{
"data": {
"text/plain": [
"<tomographer.querrorbars._Ns at 0x1187e0470>"
"<tomographer.querrorbars._Ns at 0x111432e10>"
]
},
"execution_count": 9,
Expand Down Expand Up @@ -1601,8 +1602,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING:tomographer.querrorbars:Reduced chi-squared statistic = 59.07. It could be that the fit model isn't good or that the fit optimization failed.\n",
"WARNING:tomographer.querrorbars:Reduced chi-squared statistic = 2.119. It could be that the fit model isn't good or that the fit optimization failed.\n"
"WARNING:tomographer.querrorbars:Reduced chi-squared statistic = 59.07. It could be that the fit model isn't good or that the fit optimization failed.\n"
]
},
{
Expand All @@ -1619,27 +1619,28 @@
" f0 = 0.1635\n",
" Delta = 0.01434\n",
" gamma = 0.0004189\n",
"\n",
"Fit parameters:\n",
" a = 11.7616\n",
" xq = -13.5556\n",
" m = 11.7944\n",
" p = 8.68161\n",
" c = 2228.03\n",
"Taking care of plots for st., opt.\n"
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING:tomographer.querrorbars:Reduced chi-squared statistic = 2.119. It could be that the fit model isn't good or that the fit optimization failed.\n",
"WARNING:tomographer.querrorbars:Reduced chi-squared statistic = 47.33. It could be that the fit model isn't good or that the fit optimization failed.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fit parameters:\n",
" a = 11.7616\n",
" xq = -13.5556\n",
" m = 11.7944\n",
" p = 8.68161\n",
" c = 2228.03\n",
"Taking care of plots for st., opt.\n",
"Fit parameters:\n",
" a2 = 4.67394e-16\n",
" a1 = 1570.24\n",
Expand Down Expand Up @@ -1755,7 +1756,7 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 25,
"metadata": {
"scrolled": false
},
Expand Down Expand Up @@ -1937,7 +1938,7 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 26,
"metadata": {
"scrolled": false
},
Expand Down
Loading

0 comments on commit 2a65454

Please sign in to comment.