PySparQ.pysparq.test.conftest

Shared helpers imported by PySparQ’s algorithm integration tests.

Functions

state_to_amplitude_dict(state, register) → dict[int, complex]

Aggregate amplitudes by the selected register value.

Module Contents

PySparQ.pysparq.test.conftest.state_to_amplitude_dict(state: pysparq.SparseState, register: str) → dict[int, complex][source]

Aggregate amplitudes by the selected register value.