dense-Evolution / tests /_helpers.py
Tatopenn's picture
Sync mirror with GitHub main (v8.1.62): subpackage refactor, mitigation promotions, MCP server refactor
2a87ede verified
Raw
History Blame Contribute Delete
286 Bytes
"""Small assertion helpers shared across a few test files (not fixtures --
plain functions, imported explicitly where needed)."""
import numpy as np
def norm(sim):
return float(np.linalg.norm(sim.get_statevector()))
def probs(sim):
return sim.get_probabilities()