circuit_knitting.cutting.cutqc.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.

Deprecated since version 0.7.0: The function circuit_knitting.cutting.cutqc.wire_cutting_verification.verify() 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 the circuit_knitting.cutting package.

Parameters:
  • full_circuit (QuantumCircuit) – The original quantum circuit that was cut

  • reconstructed_output (ndarray) – The reconstructed probability distribution from the execution of the subcircuits

Return type:

tuple[dict[str, dict[str, float]], Sequence[float]]

Returns:

A tuple containing metrics for the ground truth and reconstructed distributions