circuit_knitting.cutting.cutqc.build¶
- build(summation_terms, subcircuit_entry_probs, num_cuts, num_threads)[source]¶
Reconstruct the full probability distribution from the subcircuits.
Deprecated since version 0.7.0: The function
circuit_knitting.cutting.cutqc.wire_cutting_post_processing.build()
is deprecated as of circuit-knitting-toolbox 0.7.0. It will be removed no sooner than CKT v0.8.0. Use the wire cutting or automated cut-finding functionality in thecircuit_knitting.cutting
package.- Parameters:
summation_terms (
Sequence
[dict
[int
,int
]]) – The summation terms used to generate the full vector, as generated in generate_summation_termssubcircuit_entry_probs (
dict
[int
,dict
[int
,ndarray
]]) – The probabilities vectors from the subcircuit executionsnum_cuts (
int
) – The number of cutsnum_threads (
int
) – The number of threads to use for multithreading
- Return type:
- Returns:
A tuple containing the reconstructed probability distribution of the full circuit, the ordering of the distribution, and the computational post-processing overhead