Skip to content

Commit

Permalink
expose classes and methods for convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick committed Feb 11, 2024
1 parent d2e17be commit 9b3dbb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qutip_qoc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from .version import version as __version__ # noqa

from qutip_qoc.time_interval import TimeInterval
from qutip_qoc.objective import Objective
from qutip_qoc.optimize import optimize_pulses

__all__ = ["TimeInterval"]
__all__ = ["TimeInterval", "Objective", "optimize_pulses"]
3 changes: 3 additions & 0 deletions src/qutip_qoc/time_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def __init__(self, tslots=None, evo_time=None, n_tslots=100, tdiffs=None):
self._n_tslots = n_tslots
self._tdiffs = tdiffs

def __call__(self):
return self.tslots

@property
def tslots(self):
if self._tslots is None:
Expand Down

0 comments on commit 9b3dbb2

Please sign in to comment.