circuit_knitting.cutting.cutqc.reconstruct_full_distribution¶
- reconstruct_full_distribution(circuit, subcircuit_instance_probabilities, cuts, num_threads=1)[source]¶
Reconstruct the full probabilities from the subcircuit evaluations.
Deprecated since version 0.7.0: The function
circuit_knitting.cutting.cutqc.wire_cutting.reconstruct_full_distribution()
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:
circuit (
QuantumCircuit
) – The original full circuitsubcircuit_instance_probabilities (
dict
[int
,dict
[int
,ndarray
]]) – The probability vectors from each of the subcircuit instances, as output by the _run_subcircuits functionnum_threads (
int
) – The number of threads to use to parallelize the recomposing
- Return type:
- Returns:
The reconstructed probability vector