Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.adapter.backend.noisy-simulator

Advanced noisy quantum simulator backend implementing realistic quantum computing device simulation with comprehensive noise modeling.

This backend provides local simulation of quantum devices with noise using the domain layer's quantum state and circuit functionality. It serves as both a reference implementation and testing backend for quantum algorithms under realistic noise conditions.

This simulator models various types of quantum noise including:

  • Depolarizing noise using Kraus operators
  • Amplitude damping (T1 decay) modeling energy dissipation
  • Phase damping (T2 dephasing) modeling pure dephasing
  • Readout errors with configurable bit-flip probabilities
  • Coherent errors and systematic rotation biases
  • Gate-specific noise parameters based on real device calibration
  • Comprehensive Amazon Braket quantum hardware noise models

The noise model can be configured with parameters such as T1 and T2 times, gate operation times, and noise strengths. It supports advanced noise configurations including correlated readout errors and coherent errors with specific rotation angles and axes. The simulator applies noise during gate operations and measurements, simulating realistic quantum device behavior.

The noise model map has the following structure:

{:gate-noise {
  :h {:noise-type :depolarizing :noise-strength 0.01}
  :x {:noise-type :amplitude-damping :noise-strength 0.02}
  :cnot {:noise-type :phase-damping :noise-strength 0.03}
  ...}
 :readout-error {:prob-0-to-1 0.05 :prob-1-to-0 0.02}}

Note: The simulator currently doesn't model crosstalk between qubits.

The simulator supports asynchronous job management, allowing users to submit circuits and retrieve results later. It can be used for testing algorithms, circuit designs, and quantum operations without requiring access to actual quantum hardware.

It also implements the CloudQuantumBackend protocol for mock cloud backend functionality, allowing it to be used in a cloud-like environment for testing purposes.

Advanced noisy quantum simulator backend implementing realistic
quantum computing device simulation with comprehensive noise modeling.

This backend provides local simulation of quantum devices with noise
using the domain layer's quantum state and circuit functionality.
It serves as both a reference implementation and testing backend for
quantum algorithms under realistic noise conditions.

This simulator models various types of quantum noise including:
- Depolarizing noise using Kraus operators
- Amplitude damping (T1 decay) modeling energy dissipation  
- Phase damping (T2 dephasing) modeling pure dephasing
- Readout errors with configurable bit-flip probabilities
- Coherent errors and systematic rotation biases
- Gate-specific noise parameters based on real device calibration
- Comprehensive Amazon Braket quantum hardware noise models

The noise model can be configured with parameters such as T1 and T2
times, gate operation times, and noise strengths. It supports
advanced noise configurations including correlated readout errors
and coherent errors with specific rotation angles and axes.
The simulator applies noise during gate operations and measurements,
simulating realistic quantum device behavior.

The noise model map has the following structure:
```clojure
{:gate-noise {
  :h {:noise-type :depolarizing :noise-strength 0.01}
  :x {:noise-type :amplitude-damping :noise-strength 0.02}
  :cnot {:noise-type :phase-damping :noise-strength 0.03}
  ...}
 :readout-error {:prob-0-to-1 0.05 :prob-1-to-0 0.02}}
```

Note: The simulator currently doesn't model crosstalk between qubits.

The simulator supports asynchronous job management, allowing
users to submit circuits and retrieve results later. It can be used
for testing algorithms, circuit designs, and quantum operations
without requiring access to actual quantum hardware.
 
It also implements the CloudQuantumBackend protocol for mock cloud
backend functionality, allowing it to be used in a cloud-like
environment for testing purposes.
raw docstring

all-noise-modelsclj

(all-noise-models)
(all-noise-models devices)

Get all available noise models.

Returns: Map of platform names to noise models

Get all available noise models.

Returns: Map of platform names to noise models
sourceraw docstring

cleanup-completed-jobs!clj

(cleanup-completed-jobs!)
(cleanup-completed-jobs! max-age-ms)

Remove completed jobs older than specified time (in milliseconds).

Parameters:

  • max-age-ms: Maximum age for completed jobs (default: 1 hour)

Returns: Number of jobs cleaned up

Remove completed jobs older than specified time (in milliseconds).

Parameters:
- max-age-ms: Maximum age for completed jobs (default: 1 hour)

Returns: Number of jobs cleaned up
sourceraw docstring

create-noisy-simulatorclj

(create-noisy-simulator noise-model)
(create-noisy-simulator noise-model config)

Create a local noisy quantum simulator with comprehensive noise modeling.

Parameters:

  • noise-model: Advanced noise model configuration
  • config: Optional simulator configuration

Returns: LocalNoisyQuantumSimulator instance

Create a local noisy quantum simulator with comprehensive noise modeling.

Parameters:
- noise-model: Advanced noise model configuration
- config: Optional simulator configuration

Returns: LocalNoisyQuantumSimulator instance
sourceraw docstring

get-simulator-statsclj

(get-simulator-stats)

Get statistics about the noisy simulator state.

Returns: Map with job counts and statistics

Get statistics about the noisy simulator state.

Returns: Map with job counts and statistics
sourceraw docstring

noise-model-forclj

(noise-model-for platform)
(noise-model-for devices platform)

Get the noise model for a specific platform.

Parameters:

  • platform: Platform name (keyword)

Returns: Noise model map or nil if not found

Get the noise model for a specific platform.

Parameters:
- platform: Platform name (keyword)

Returns: Noise model map or nil if not found
sourceraw docstring

reset-simulator-state!clj

(reset-simulator-state!)

Reset the noisy simulator state, clearing all jobs and counters.

Returns: Updated state

Reset the noisy simulator state, clearing all jobs and counters.

Returns: Updated state
sourceraw docstring

stateclj

source

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

× close