Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.application.noise

Quantum noise application layer providing high-level noise modeling functions.

This namespace contains advanced noise application functions that bridge the pure quantum mechanics in domain.channel with practical use cases like:

  • Error mitigation algorithms
  • Circuit fidelity estimation
  • Platform comparison and benchmarking
  • Hardware-aware noise modeling

These functions were moved from the noisy simulator backend to make them available for broader use cases throughout the quantum computing stack.

Quantum noise application layer providing high-level noise modeling functions.

This namespace contains advanced noise application functions that bridge the 
pure quantum mechanics in domain.channel with practical use cases like:
- Error mitigation algorithms
- Circuit fidelity estimation  
- Platform comparison and benchmarking
- Hardware-aware noise modeling

These functions were moved from the noisy simulator backend to make them
available for broader use cases throughout the quantum computing stack.
raw docstring

apply-gate-noiseclj

(apply-gate-noise state gate noise-model)

Apply noise model during gate operation.

This function applies the clean gate operation first, then applies the configured noise channel to simulate realistic quantum hardware behavior.

Parameters:

  • state: Current quantum state
  • gate: Gate operation to apply
  • noise-model: noise model to apply

Returns: State after gate operation and noise application

Apply noise model during gate operation.

This function applies the clean gate operation first, then applies
the configured noise channel to simulate realistic quantum hardware behavior.

Parameters:
- state: Current quantum state
- gate: Gate operation to apply
- noise-model: noise model to apply

Returns: State after gate operation and noise application
sourceraw docstring

apply-readout-noiseclj

(apply-readout-noise current-state num-qubits noise-model)

Apply advanced readout noise with potential correlations.

This function simulates realistic measurement errors that occur in actual quantum hardware, including correlated errors between qubits.

Correlated errors model the physical reality that readout errors on one qubit can increase or decrease the probability of errors on nearby qubits due to:

  • Electromagnetic crosstalk during readout
  • Charge noise affecting neighboring qubits
  • Shared readout circuitry interference

The correlation model works as follows:

  1. For each qubit, calculate effective error probability considering correlations
  2. Apply error decisions in a single pass to avoid double-counting
  3. Correlation factors > 1.0 increase error probability, < 1.0 decrease it

Parameters:

  • state: the state to measure
  • num-qubits: number of qubits in the system
  • noise-model: noise model configuration with optional correlated-errors

Correlated-errors format: {:correlated-errors {source-qubit {target-qubit correlation-factor, ...}, ...}} where correlation-factor > 1.0 increases error probability, < 1.0 decreases it.

Returns: Bitstring representing the measured outcome with readout noise applied

Apply advanced readout noise with potential correlations.

This function simulates realistic measurement errors that occur in
actual quantum hardware, including correlated errors between qubits.

Correlated errors model the physical reality that readout errors on one qubit
can increase or decrease the probability of errors on nearby qubits due to:
- Electromagnetic crosstalk during readout
- Charge noise affecting neighboring qubits  
- Shared readout circuitry interference

The correlation model works as follows:
1. For each qubit, calculate effective error probability considering correlations
2. Apply error decisions in a single pass to avoid double-counting
3. Correlation factors > 1.0 increase error probability, < 1.0 decrease it

Parameters:
- state: the state to measure
- num-qubits: number of qubits in the system
- noise-model: noise model configuration with optional correlated-errors

Correlated-errors format:
{:correlated-errors {source-qubit {target-qubit correlation-factor, ...}, ...}}
where correlation-factor > 1.0 increases error probability, < 1.0 decreases it.

Returns: Bitstring representing the measured outcome with readout noise applied
sourceraw docstring

compare-hardware-platformsclj

(compare-hardware-platforms circuit platform-models)

Compare circuit fidelity across different quantum hardware platforms.

This function is valuable for:

  • Selecting the best platform for a given circuit
  • Understanding platform-specific error characteristics
  • Circuit design optimization for specific hardware

Parameters:

  • circuit: Quantum circuit to analyze
  • platform-models: Map of platform names to noise models

Returns: Map of platform comparisons with fidelity estimates and characteristics

Compare circuit fidelity across different quantum hardware platforms.

This function is valuable for:
- Selecting the best platform for a given circuit
- Understanding platform-specific error characteristics
- Circuit design optimization for specific hardware

Parameters:
- circuit: Quantum circuit to analyze
- platform-models: Map of platform names to noise models

Returns: Map of platform comparisons with fidelity estimates and characteristics
sourceraw docstring

estimate-circuit-fidelityclj

(estimate-circuit-fidelity circuit noise-model)

Estimate the overall fidelity of a circuit under given noise model.

This provides a rough estimate based on gate counts and noise strengths, useful for circuit optimization and platform comparison.

Parameters:

  • circuit: Quantum circuit to analyze
  • noise-model: Noise model configuration

Returns: Map with fidelity estimates and error analysis

Estimate the overall fidelity of a circuit under given noise model.

This provides a rough estimate based on gate counts and noise strengths,
useful for circuit optimization and platform comparison.

Parameters:
- circuit: Quantum circuit to analyze
- noise-model: Noise model configuration

Returns: Map with fidelity estimates and error analysis
sourceraw docstring

noise-aware-circuit-depthclj

(noise-aware-circuit-depth circuit noise-model)

Calculate effective circuit depth considering noise accumulation.

This metric accounts for how noise accumulates through circuit layers, providing a more realistic assessment than gate count alone.

Parameters:

  • circuit: Quantum circuit to analyze
  • noise-model: Noise model for depth calculation

Returns: Effective depth considering noise accumulation

Calculate effective circuit depth considering noise accumulation.

This metric accounts for how noise accumulates through circuit layers,
providing a more realistic assessment than gate count alone.

Parameters:
- circuit: Quantum circuit to analyze
- noise-model: Noise model for depth calculation

Returns: Effective depth considering noise accumulation
sourceraw docstring

recommend-error-mitigationclj

(recommend-error-mitigation circuit noise-model & [options])

Recommend error mitigation strategies based on circuit and noise analysis.

Parameters:

  • circuit: Quantum circuit to analyze
  • noise-model: Hardware noise model
  • options: Analysis options

Returns: Map with recommended mitigation strategies

Recommend error mitigation strategies based on circuit and noise analysis.

Parameters:
- circuit: Quantum circuit to analyze
- noise-model: Hardware noise model
- options: Analysis options

Returns: Map with recommended mitigation strategies
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close