Skip to content

Commit

Permalink
fix: clarify factory optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
AthenaCaesura committed May 1, 2024
1 parent 31f6436 commit 433143e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/benchq/magic_state_distillation/litinski_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
def iter_litinski_factories(
architecture_model: BasicArchitectureModel,
) -> Iterable[MagicStateFactory]:
"""
An iterator which yields magic state factories which are optimized in order
to minimize the space time volume.
"""
assert architecture_model.physical_qubit_error_rate in _ALLOWED_PHYSICAL_ERROR_RATES

return _ERROR_RATE_FACTORY_MAPPING[architecture_model.physical_qubit_error_rate]
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
def iter_small_footprint_factories(
architecture_model: BasicArchitectureModel,
) -> Iterable[MagicStateFactory]:
"""
An iterator which yields magic state factories which are optimized in order
to minimize the number of physical qubits.
"""

assert architecture_model.physical_qubit_error_rate in _ALLOWED_PHYSICAL_ERROR_RATES

return _ERROR_RATE_FACTORY_MAPPING[architecture_model.physical_qubit_error_rate]

0 comments on commit 433143e

Please sign in to comment.