Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.adapter.backend.simulator

Local quantum simulator implementing the QuantumBackend protocol.

This adapter provides a local simulation of quantum circuits using the domain layer's quantum state and circuit functionality. It serves as both a reference implementation and a testing backend.

Local quantum simulator implementing the QuantumBackend protocol.

This adapter provides a local simulation of quantum circuits using
the domain layer's quantum state and circuit functionality. It serves
as both a reference implementation and a testing backend.
raw docstring

create-noisy-simulatorclj

(create-noisy-simulator noise-config)

Create a quantum simulator with noise modeling.

This is a placeholder for future noise model implementation.

Parameters:

  • noise-config: Configuration for noise modeling

Returns: LocalQuantumSimulator with noise

Create a quantum simulator with noise modeling.

This is a placeholder for future noise model implementation.

Parameters:
- noise-config: Configuration for noise modeling

Returns: LocalQuantumSimulator with noise
sourceraw docstring

create-simulatorclj

(create-simulator)
(create-simulator config)

Create a new local quantum simulator backend.

Parameters:

  • config: Optional configuration map
    • :max-qubits - Maximum number of qubits to simulate (default: 20)
    • :noise-model - Noise model for realistic simulation (not implemented)
    • :seed - Random seed for reproducible results

Returns: LocalQuantumSimulator instance

Create a new local quantum simulator backend.

Parameters:
- config: Optional configuration map
  - :max-qubits - Maximum number of qubits to simulate (default: 20)
  - :noise-model - Noise model for realistic simulation (not implemented)
  - :seed - Random seed for reproducible results

Returns: LocalQuantumSimulator instance
sourceraw docstring

get-simulator-statsclj

(get-simulator-stats)

Get statistics about the simulator usage.

Returns: Map with job statistics and performance metrics

Get statistics about the simulator usage.

Returns: Map with job statistics and performance metrics
sourceraw docstring

reset-simulator-state!clj

(reset-simulator-state!)

Reset the simulator state, clearing all jobs.

This is useful for testing and development.

Reset the simulator state, clearing all jobs.

This is useful for testing and development.
sourceraw docstring

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

× close