Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.domain.noise

Specifications and functions for applying quantum noise to quantum states.

This namespace defines specifications for quantum noise models, including gate noise and readout errors, as well as functions to apply these noise models during gate operations and measurements.

The noise models are designed to be flexible and extensible, allowing users to simulate various types of realistic quantum noise.

Example noise types include:

  • Depolarizing noise
  • Amplitude damping
  • Phase damping
  • Coherent errors
Specifications and functions for applying quantum noise to quantum states.

This namespace defines specifications for quantum noise models,
including gate noise and readout errors, as well as functions to
apply these noise models during gate operations and measurements.

The noise models are designed to be flexible and extensible,
allowing users to simulate various types of realistic quantum noise.

Example noise types include:
- Depolarizing noise
- Amplitude damping
- Phase damping
- Coherent errors
raw docstring

apply-gate-noiseclj

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

Apply noise model during gate operation.

This function applies applies the configured noise channel to a clean state to simulate realistic quantum hardware behavior.

Parameters:

  • clean-state: State after clean gate operation has been applied
  • 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 applies the configured noise channel to a clean state
to simulate realistic quantum hardware behavior.

Parameters:
- clean-state: State after clean gate operation has been applied
- 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

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close