Noise
qiskit_mitigation.noise
Functionality for specifying and transforming quantum noise.
create_postselected_noise_mask
create_postselected_noise_mask(noisy_circuit, noise_maps, detectors)
Identify generators in noise_maps that anticommute with one or more detectors.
Each detector, given as a Pauli operator at the end of noisy_circuit is evolved backward through the circuit. At each InjectNoise site, a generator that anticommutes with some evolved detector gets scale 0; a surviving generator gets 1.
Parameters
- noisy_circuit (QuantumCircuit) – A circuit of box instructions. Box instructions may contain Clifford instructions, and any non-Clifford instructions they contain must commute with all
detectors.InjectNoiseannotations should be used to denote noisy layers in the circuit, and eachInjectNoisereference ID should be a key innoise_maps. - detectors (PauliList |Sequence[Pauli |str]) – Pauli detectors defined at the end of
noisy_circuiton all qubits. - noise_maps (dict[str, PauliLindbladMap]) – A mapping from each unique
InjectNoisereference ID to the Pauli-Lindblad noise associated with that circuit layer.
Returns
- A
dictmapping each noisy box’sInjectNoise.modifier_refto a0/1array aligned with that box’snoise_mapsgenerators, ready to use as samplomaticlocal_scales - The sampling cost of inverting only the surviving generators with PEC.
Return type
Was this page helpful?
Report a bug, typo, or request content on GitHub.