Documentation
¶
Overview ¶
Package sim defines the Simulator interface satisfied by all backends (CPU statevector, density matrix, GPU, etc.).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Simulator ¶
type Simulator interface {
// Run executes the circuit for the given number of shots and returns measurement counts.
Run(c *ir.Circuit, shots int) (map[string]int, error)
// Evolve applies all gate operations without measuring, leaving the state accessible.
Evolve(c *ir.Circuit) error
// StateVector returns a copy of the current state vector.
StateVector() []complex128
// Close releases any resources held by the simulator.
// For CPU simulators this is a no-op; GPU simulators free device memory.
Close() error
}
Simulator is the common interface for quantum circuit simulators. Both CPU and GPU implementations satisfy this interface.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package clifford implements an efficient stabilizer-state simulator using the Aaronson-Gottesman tableau representation.
|
Package clifford implements an efficient stabilizer-state simulator using the Aaronson-Gottesman tableau representation. |
|
Package densitymatrix implements a density matrix quantum simulator supporting mixed states and noise channels.
|
Package densitymatrix implements a density matrix quantum simulator supporting mixed states and noise channels. |
|
Package noise defines quantum noise channels and noise models for use with the density matrix simulator.
|
Package noise defines quantum noise channels and noise models for use with the density matrix simulator. |
|
Package operator provides quantum channel representations and conversions.
|
Package operator provides quantum channel representations and conversions. |
|
Package pauli provides Pauli algebra types and efficient expectation value computation for statevector and density matrix simulators.
|
Package pauli provides Pauli algebra types and efficient expectation value computation for statevector and density matrix simulators. |
|
Package pulsesim simulates pulse programs via statevector evolution.
|
Package pulsesim simulates pulse programs via statevector evolution. |
|
Package statevector implements a full statevector quantum simulator supporting up to 28 qubits.
|
Package statevector implements a full statevector quantum simulator supporting up to 28 qubits. |
Click to show internal directories.
Click to hide internal directories.