qermit.coherent_pauli_checks¶
- class qermit.coherent_pauli_checks.pauli_sampler.PauliSampler[source]¶
Abstract base class for Pauli samplers. Pauli samples should sample Paulis to be used a checks.
- add_pauli_checks_to_circbox(circuit)[source]¶
Add checks to all subcircuits labeled “Clifford Subcircuit”.
- class qermit.coherent_pauli_checks.pauli_sampler.OptimalPauliSampler(noise_model, n_checks)[source]¶
Bases:
PauliSampler
Samples pauli check based on a noise model. Simulates the noise models action on clifford subcircuits in order to select checks.
- Parameters:
noise_model (
NoiseModel
) – The noise model to optimally pick pauli checks for.n_checks (
int
) – The number of checks to sample.
- class qermit.coherent_pauli_checks.pauli_sampler.RandomPauliSampler(n_checks, rng=Generator(PCG64) at 0x7F9512A3AC00)[source]¶
Bases:
PauliSampler
Sampler returning random Pauli of appropriate length.
- Parameters: