qiskit_qec.utils.get_counts_via_stim

get_counts_via_stim(circuits, shots=4000, noise_model=None)[source]

Returns a qiskit compatible dictionary of measurement outcomes

Parameters:
  • circuits (Union[List, QuantumCircuit]) – Qiskit circuit compatible with get_stim_circuits or list thereof.

  • shots (int) – Number of samples to be generated.

  • noise_model (Optional[PauliNoiseModel]) – Pauli noise model for any additional noise to be applied.

Returns:

Counts dictionary in standard Qiskit form or list thereof.

Return type:

counts