pycauset.spacetime.ConformalSpacetime
class ConformalSpacetime(base: Spacetime, conformal_factor: Callable, volume: float | None = None, max_weight: float | None = None)
Inherits from: Spacetime
Wraps a spacetime with a position-dependent conformal factor Omega(x), rescaling the metric by Omega(x)^2. Conformal transformations preserve the causal light-cone, so is_causal is inherited verbatim, but they rescale the volume measure by Omega^d.
Parameters
- base (Spacetime): The spacetime to wrap.
- conformal_factor (callable):
Omega(coords) -> float, strictly positive on the base's support. Points where it returns<= 0are rejected. - volume (float, optional): The conformal volume
∫ Omega^d dV. If omitted, it is Monte-Carlo estimated asE[Omega^d] * V_basesovolume ↔ samplestay consistent. - max_weight (float, optional): An upper bound on
Omega^d, used as the rejection bound insample. If omitted, it is calibrated by sampling the base. Pass it explicitly when the factor has sharp, poorly-sampled peaks.
Methods
volume
The conformal volume (provided, or Monte-Carlo estimated).
sample
Draws n points by rejection-sampling the base with weight Omega^d.
is_causal
Inherited unchanged from base (conformal maps preserve the light cone).
Example
from pycauset import spacetime
box = spacetime.MinkowskiBox(2, 10.0, 10.0)
# Omega = 2 rescales the volume measure by 2^2 = 4.
blown_up = spacetime.ConformalSpacetime(box, conformal_factor=lambda c: 2.0)