PySparQ.pysparq.test.conftest

Shared helpers imported by PySparQ's algorithm integration tests.

Functions

state_to_amplitude_dict(→ 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][源代码]

Aggregate amplitudes by the selected register value.