Documentation Index
Fetch the complete documentation index at: https://tsim.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
class CompiledScalarGraphs
ScalarPrefactor (global phase, floatfactor, 2^power2,
optional approximate complex floatfactor). All arrays are static-shaped so
the whole struct can be traced under jax.jit.
class ExactScalarArray
prod
axis(int) — The axis along which to compute the product.
ExactScalarArray— ExactScalarArray with the product computed along the axis.
sum
axis(int) — The axis along which to sum.
ExactScalarArray— ExactScalarArray with the sum computed along the axis.
to_complex
evaluate
NodePhases, HalfPiPhases, PiProducts,
PhasePairs) computes its own contribution via .evaluate(param_vals).
This function multiplies those together with the per-graph
ScalarPrefactor and folds in power2 / any approximate floatfactor.
Parameters:
circuit(CompiledScalarGraphs) — Compiled circuit representation.param_vals(Array) — Binary parameter values (error bits + measurement/detector outcomes), shape(batch_size, n_params).
Array— Complex array of shape(batch_size,)— the per-sample amplitude.