MatchCake

matchcake.devices.probability_strategies package

Submodules

matchcake.devices.probability_strategies.explicit_sum_strategy module

class matchcake.devices.probability_strategies.explicit_sum_strategy.ExplicitSumStrategy

Bases: ProbabilityStrategy

NAME: str = 'ExplicitSum'
REQUIRES_KWARGS: List[str] = ['transition_matrix', 'all_wires']
__call__(*, system_state: TensorLike, target_binary_state: TensorLike, wires: Wires, **kwargs) TensorLike

Call self as a function.

__init__()

matchcake.devices.probability_strategies.lookup_table_strategy module

class matchcake.devices.probability_strategies.lookup_table_strategy.LookupTableStrategy

Bases: ProbabilityStrategy

NAME: str = 'LookupTable'
REQUIRES_KWARGS: List[str] = ['lookup_table', 'pfaffian_method']
__call__(*, system_state: TensorLike, target_binary_state: TensorLike, wires: Wires, **kwargs) TensorLike

Call self as a function.

batch_call(*, system_state: TensorLike, target_binary_states: TensorLike, batch_wires: Wires | None = None, **kwargs) TensorLike

matchcake.devices.probability_strategies.lookup_table_strategy_v2 module

class matchcake.devices.probability_strategies.lookup_table_strategy_v2.LookupTableStrategyV2

Bases: ProbabilityStrategy

NAME: str = 'LookupTableV2'
REQUIRES_KWARGS: List[str] = ['lookup_table']
__call__(*, system_state: TensorLike, target_binary_state: TensorLike, wires: Wires, **kwargs) TensorLike

Call self as a function.

batch_call(*, system_state: TensorLike, target_binary_states: TensorLike, batch_wires: Wires, **kwargs) TensorLike

matchcake.devices.probability_strategies.probability_strategy module

class matchcake.devices.probability_strategies.probability_strategy.ProbabilityStrategy

Bases: ABC

NAME: str = 'ProbabilityStrategy'
REQUIRES_KWARGS: List[str] = []
abstract __call__(*, system_state: TensorLike, target_binary_state: TensorLike, wires: Wires, **kwargs) TensorLike

Call self as a function.

batch_call(*, system_state: TensorLike, target_binary_states: TensorLike, batch_wires: Wires, **kwargs) TensorLike
check_required_kwargs(kwargs)

Module contents

matchcake.devices.probability_strategies.get_probability_strategy(name: str) ProbabilityStrategy