Packages

Pure-Elixir quantum circuit simulation and quantum machine learning primitives powered by Nx.

Current section

Files

Jump to
nx_quantum lib nx_quantum performance report.ex
Raw

lib/nx_quantum/performance/report.ex

defmodule NxQuantum.Performance.Report do
@moduledoc false
@enforce_keys [:profile, :entries]
defstruct [:profile, :entries]
@type entry :: %{
required(:batch_size) => pos_integer(),
required(:latency_ms) => float(),
required(:throughput_ops_s) => float(),
required(:memory_mb) => float()
}
@type t :: %__MODULE__{
profile: atom(),
entries: [entry()]
}
end