selene_simΒΆ

selene_sim is a Python package that provides emulation of hybrid quantum circuits.

Classes

BuildMethod(value)

An enumeration of the different methods that can be used to build a compiled user program as an object file before linking with selene.

BitcodeString(bitcode)

SeleneInstance(root, artifacts, runs, ...)

Represents a selene instance, which is a wrapper around the selene executable generated from a user program by build.py's build function.

Stim

alias of StimPlugin

Quest

alias of QuestPlugin

Coinflip

alias of CoinflipPlugin

ClassicalReplay

alias of ClassicalReplayPlugin

QuantumReplay

alias of QuantumReplayPlugin

SimpleRuntime

alias of SimpleRuntimePlugin

SoftRZRuntime

alias of SoftRZRuntimePlugin

DepolarizingErrorModel

alias of DepolarizingPlugin

IdealErrorModel

alias of IdealPlugin

SimpleLeakageErrorModel

alias of SimpleLeakagePlugin

HeliosInterface(log_level)

EventHook()

A base class for configuring events to be sent by Selene, detecting related events in the results stream, and handling them.

NoEventHook()

A dummy EventHook that does nothing.

MultiEventHook([event_hooks, short_circuit])

A class that encapsulates multiple EventHooks, allowing them to be treated as a single EventHook.

CircuitExtractor()

MetricStore()

A simple implementation of MetricsHandler that calls a user-provided callback when metrics are output

Functions

build(src[, name, build_dir, interface, ...])

Build an selene runner from a supported input resource type, e.g. a hugr package, LLVM file, etc.