-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .version import version as __version__ # noqa | ||
from .about import about, _about |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
""" | ||
Command line output of information on QuTiP QIP and dependencies. | ||
""" | ||
|
||
import qutip | ||
import qutip_qip | ||
import os | ||
import inspect | ||
|
||
|
||
def _about(): | ||
""" | ||
Meant to be called from qutip's about function | ||
through qutip-qip's entrypoint. | ||
""" | ||
title = "QuTiP QIP: QuTiP Quantum Information Processing" | ||
lines = [] | ||
lines.append("=" * len(title)) | ||
lines.append("QuTiP QIP Version: %s" % qutip_qip.__version__) | ||
qutip_qip_install_path = os.path.dirname(inspect.getsourcefile(qutip_qip)) | ||
lines.append("Installation path: %s" % qutip_qip_install_path) | ||
return title, lines | ||
|
||
|
||
def about(): | ||
"""About box for QuTiP QIP.""" | ||
qutip.about() |