circuit_knitting_toolbox.circuit_cutting.wire_cutting.build¶
- build(summation_terms, subcircuit_entry_probs, num_cuts, num_threads)[source]¶
Reconstruct the full probability distribution from the subcircuits.
- Parameters:
summation_terms (-) – the summation terms used to generate the full vector, as generated in generate_summation_terms
subcircuit_entry_probs (-) – the probabilities vectors from the subcircuit executions
num_cuts (-) – the number of cuts
num_threads (-) – the number of threads to use for multithreading
- Return type:
Tuple
[NDArray
,List
[int
],Dict
[str
,int
]]- Returns:
a tuple containing:
(NDArray): the reconstructed probability distribution of the full circuit
(list): the ordering of the distribution
(dict): the computational post-processing overhead