Skip to content

Commit

Permalink
Merge pull request #58 from Cornell-QCA/simulator
Browse files Browse the repository at this point in the history
Added get_model
  • Loading branch information
Haadi-Khan authored Jun 22, 2024
2 parents 6d7e79a + 17bd248 commit 0582a98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/anyon_braiding_simulator/Simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ def set_model(self, model: Model) -> None:
"""
self._model = model

def get_model(self) -> Model:
"""
Get the model for the simulator.
"""
if self._model is None:
raise ValueError('Model has not been set')
return self._model

def list_anyons(self) -> list:
"""
List the anyons currently in the simulator.
Expand Down

0 comments on commit 0582a98

Please sign in to comment.