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

Bugfix notebook 7 #337

Merged
merged 3 commits into from
Aug 10, 2023
Merged
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
2 changes: 1 addition & 1 deletion pygsti/baseobjs/statespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def num_qudits(self): # may raise ValueError if the state space doesn't consist
"""
The number of qubits in this quantum state space.
"""
return len(self.qubit_labels)
return len(self.qudit_labels)

@property
def num_tensor_product_blocks(self):
Expand Down
4 changes: 2 additions & 2 deletions pygsti/report/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ def launch(self, output_filename, template_filename=DefaultTemplate, port='auto'
self.save_to(output_filename, template_filename)
output_filename = _os.path.abspath(output_filename) # for path manips below

from notebook import notebookapp
servers = list(notebookapp.list_running_servers())
from jupyter_server import serverapp
servers = list(serverapp.list_running_servers())
for serverinfo in servers:
rel = _os.path.relpath(output_filename, serverinfo['notebook_dir'])
if ".." not in rel: # notebook servers don't allow moving up directories
Expand Down
2 changes: 1 addition & 1 deletion pygsti/report/workspacetables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ def __init__(self, ws, model, target_model, confidence_region_info=None,

- "logG-logT" : errgen = log(gate) - log(target_op)
- "logTiG" : errgen = log( dot(inv(target_op), gate) )
- "logTiG" : errgen = log( dot(gate, inv(target_op)) )
- "logGTi" : errgen = log( dot(gate, inv(target_op)) )

Returns
-------
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
'html_reports': ['jinja2', 'MarkupSafe'],
'notebooks': [
'ipython',
'notebook'
'notebook',
'jupyter_server'
],
'mongodb': ['pymongo'],
'msgpack': ['msgpack'],
Expand Down Expand Up @@ -80,7 +81,8 @@
'qibo<=0.1.7',
'cirq-core',
'notebook',
'ipython'
'ipython',
'jupyter_server'
]
}

Expand Down