circuit_knitting_toolbox.circuit_cutting.wire_cutting.verify¶
- verify(full_circuit, reconstructed_output)[source]¶
Compare the reconstructed probabilities to the ground truth.
Executes the original circuit, then measures the distributional differences between this exact result (ground truth) and the reconstructed result from the subcircuits. Provides a variety of metrics to evaluate the differences in the distributions.
- Parameters:
full_circuit (-) – the original quantum circuit that was cut
reconstructed_output (-) – the reconstructed probability distribution from the execution of the subcircuits
- Return type:
Tuple
[Dict
[str
,Dict
[str
,float
]],Sequence
[float
]]- Returns:
a tuple containing:
a dictionary containing a variety of distributional difference metrics for the ground truth and reconstructed distributions; and,
the true probability distribution of the full circuit