Skip to content

Commit f450a8c

Browse files
author
Bart van der Vecht
committed
Add docstrings
1 parent 9752e38 commit f450a8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

squidasm/run/stack/run.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
class DepolariseWithFailureAnyBellStateSamplerFactory(
4242
HeraldedStateDeliverySamplerFactory
4343
):
44+
"""State sampler that samples any of the 4 Bell states with equal probablity."""
4445
def __init__(self):
4546
super().__init__(func_delivery=self._delivery_func)
4647

@@ -86,6 +87,8 @@ def _delivery_func(prob_max_mixed, prob_success, **kwargs):
8687

8788

8889
class DepolariseWithFailureAnyBellMagicDistributor(MagicDistributor):
90+
"""Distributor that creates any of the 4 Bell states with equal probablity."""
91+
8992
def __init__(self, nodes, prob_max_mixed, prob_success, **kwargs):
9093
self.prob_max_mixed = prob_max_mixed
9194
self.prob_success = prob_success

0 commit comments

Comments
 (0)