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:
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
(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:
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
(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:
The correlation model works as follows:
Parameters:
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
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |