Skip to main content
POST
/
quantlib
/
physics
/
boltzmann
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/physics/boltzmann \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "energies": [
    0,
    0.5,
    1.2,
    2.1,
    3.5
  ],
  "temperature": 1
}
'
{
  "success": true,
  "data": {
    "probabilities": [
      0.4066,
      0.2472,
      0.1504,
      0.0915,
      0.0336
    ],
    "partition_function": 2.4596,
    "average_energy": 1.2834,
    "energy_variance": 1.5623,
    "entropy": 1.3456,
    "free_energy": -0.7351,
    "heat_capacity": 0.6943
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
energies
number[]
required

Energy levels of states (can represent negative returns, costs, or losses)

Example:
[0, 1, 2, 3, 5]
temperature
number
required

Temperature parameter (higher = more uniform distribution, lower = concentrate on low energy)

Example:

1.5

Response

Boltzmann distribution calculated successfully

success
boolean
Example:

true

data
object