2022-10-10 11:17:47 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# IMPORTS
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
from IPython.display import Latex;
|
|
|
|
from IPython.display import display_latex;
|
|
|
|
from IPython.display import display_png;
|
|
|
|
from IPython.display import display_markdown;
|
|
|
|
from IPython.display import display;
|
2022-10-21 22:08:09 +02:00
|
|
|
import ipywidgets as widgets;
|
2022-10-10 11:17:47 +02:00
|
|
|
# from array_to_latex import to_ltx as array_to_latex; # <- has issues
|
|
|
|
from qiskit.visualization import array_to_latex;
|
|
|
|
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# EXPORTS
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
__all__ = [
|
2022-10-21 22:08:09 +02:00
|
|
|
'array_to_latex',
|
2022-10-10 11:17:47 +02:00
|
|
|
'display_latex',
|
|
|
|
'display_markdown',
|
2022-10-21 22:08:09 +02:00
|
|
|
'display_png',
|
|
|
|
'display',
|
|
|
|
'Latex',
|
|
|
|
'widgets',
|
2022-10-10 11:17:47 +02:00
|
|
|
];
|