I’ve been thinking about something strange lately, something that keeps creeping into my mind whenever I read about simulation theory, dive into late-night rabbit holes on Reddit, or hear people talk about their DMT experiences.
What if everything around us, this entire reality, is not just governed by mathematical laws but written in mathematics? Not metaphorically, but literally. What if math is the code, and physics is the logic system that compiles and runs this cosmic program?
I know that might sound far-fetched, like something pulled straight out of a sci-fi novel or a late-night conspiracy podcast. But the more I observe how precise, how eerily perfect our universe is, the more I start to wonder, are we truly in a naturally occurring world, or are we inside a kind of mathematical simulation? One where the laws of nature aren’t natural at all, but instead, the result of someone’s intentional design?
We already know that everything in the universe can be expressed in mathematical form, gravity, time, black holes, even concepts we haven’t fully understood yet. Sometimes, math predicts things before we even discover them. That alone is wild. Imagine predicting the behavior of an object no human has ever seen, just by crunching equations on paper. That’s not just impressive, it’s suspiciously… coded.
Now here’s where it gets even more interesting. I’ve come across accounts from people who’ve taken psychedelic substances like DMT, and their stories often point to something eerily consistent, they talk about crossing into another dimension, encountering intelligent beings, and even seeing the “machine behind the machine” the hidden system that powers reality itself.
It’s as if for a brief moment, DMT bypasses the firewall of human consciousness, allowing access to a layer of reality we’re not supposed to see, a layer that’s normally hidden from us by design.
That’s what this article is about. It’s a mix of logic, speculation, and honest curiosity. I’m not here to say, “This is the truth.” I’m here to ask, “What if it is?” And if it is… what else don’t we know yet?
If you’ve ever questioned the nature of existence, explored consciousness and simulation theory, or just felt like something doesn’t add up in the way we perceive time, dreams, or even déjà vu, you’re in the right place.
Let’s unpack this.
The Universe as a Simulation: A Quick Dive
I don’t think it’s too far-fetched anymore to seriously consider the idea that our universe might be a simulation. I know, even a few years ago, talking like this in a professional setting would’ve gotten some serious side-eye. But today, some of the brightest minds in physics, computer science, and philosophy are all asking the same question, what if we’re not in base reality?
When you take a step back and look at how everything in our universe behaves, it’s hard not to notice how perfectly aligned it all is, from the quantum scale to the movement of galaxies. Everything follows specific, predictable rules. Not kind of. Not mostly. Exactly. Doesn’t that sound less like chaos… and more like code?
Think about video games or simulations we build ourselves. In those systems, there are physics engines, boundaries, limitations, and rules that objects must follow. Now compare that to our universe. We have gravity, light speed limits, thermodynamics, all fixed, constant rules. It almost feels like we’re operating inside some kind of cosmic program governed by physical laws.
Even Elon Musk, someone who’s building literal rockets and AI systems, once said there’s a “one in billions” chance we’re not living in a simulation. Now whether you agree with him or not, it shows how mainstream this once fringe idea has become.
What fascinates me even more is how our own technology is catching up to this concept. With AI, quantum computing, and virtual reality simulations getting more advanced every year, it’s not hard to imagine a future where we could simulate life ourselves, entire ecosystems, maybe even conscious beings. If we could do it… who’s to say it hasn’t already been done to us?
And here’s the paradox that really gets me: the more we understand the universe through science, the more artificial it starts to feel. The more we zoom in, the more it looks like a system that’s been designed. And if that’s the case, then what is reality really? A physical place? Or a kind of mathematical illusion rendered in real-time?
Some call this the digital physics theory, where everything, matter, energy, even space and time, is made up of tiny informational bits, like the 1s and 0s in a computer program. Others refer to it as holographic theory, which suggests that our 3D world may actually be projected from a 2D surface at the edge of the universe.
Either way, the questions remain the same:
- Who built the simulation?
- Why?
- And if it’s all running on some kind of code… is it possible to see beyond the simulation?
Maybe that’s where altered states of consciousness come into play, tools like DMT, dreams, or meditative trances might be ways our mind peeks behind the curtain, even if only for a moment.
I’m not saying I know the answer. But I can’t shake the feeling that what we call “reality” might just be the rendered front-end of something far more complex, and far more intentional, running in the background.
Math as the Code of Reality
The more I explore this idea, the more I’m convinced that mathematics isn’t just a tool we use to describe the universe, it might actually be the language the universe is written in. And I don’t mean that in a poetic sense. I mean it literally: math is the code of reality.
Everywhere you look, you’ll find numbers quietly shaping everything. From the spiral of galaxies to the symmetry of a snowflake, from the orbits of planets to the structure of DNA, it’s all math. But what’s even crazier is that the universe doesn’t just follow mathematical rules… it obeys them. Rigidly.
If you’re into quantum physics or even basic astrophysics, you know how often mathematical equations predict phenomena that scientists haven’t even observed yet. That blows my mind. We write down a formula on paper, and years later we find a particle or a behavior that fits it exactly. What kind of system works like that?
A programmed one.
In the world of coding, we write rules into a system. That system then outputs exactly what we told it to, nothing more, nothing less. What if the laws of physics are the exact same, rules encoded into the fabric of space-time, executed through an invisible engine we call the universe?
Let’s take gravity as an example. The equation is simple, but it governs everything from an apple falling from a tree to the dance of entire galaxies. Or look at the speed of light, one of the universe’s unbreakable constants. No matter where you are, or how fast you move, it never changes. That’s not just interesting, that’s suspiciously systematic.
It’s like someone locked that value into the config file of the simulation.
This idea becomes even more interesting when we compare math to modern programming languages like Python, JavaScript, or C++. In coding, logic flows through conditions, variables, constants, loops. In nature, we see the same flow, patterns, repetitions, thresholds, and boundaries. It’s not random. It’s highly structured. And math is what holds it all together.
Think of the Fibonacci sequence, it appears everywhere: in flowers, hurricanes, galaxies, even human anatomy. Why would nature be this mathematically consistent unless it was built to be?
That’s why I see math as the source code of the universe, not just an observation tool, but the actual engine running underneath everything we see and experience. A universal script. And if that’s true, then learning math isn’t just academic… it’s the closest we may ever get to reading the raw code of existence.
And maybe, just maybe, those moments of déjà vu, glitch-like phenomena, or visions people experience on psychedelics like DMT aren’t random at all. Maybe they’re real-time code leaks, brief moments where the “rendered output” starts showing signs of the engine behind it.
I don’t know about you, but that gives me chills. Because it means the universe might not just be logical… it might be intentional. And math might not be a tool we invented, but something we discovered, because it was always there, silently running in the background.
Physics: The Logic Engine of the Simulation
If mathematics is the code, then physics is the compiler, the system that interprets and executes that code to produce what we experience as “reality.”
This is something I’ve been thinking about deeply: every simulation, every software, needs not just logic, but a logic interpreter. Something that takes raw instructions and turns them into actual events. In the case of our universe, that’s exactly what the laws of physics seem to be doing.
Look at it like this: we’ve got constants like the gravitational constant (G), the speed of light (c), Planck’s constant, and more. These aren’t just numbers we stumbled upon, they’re fixed values that the universe never violates. That kind of consistency is exactly what you’d expect from a well-structured simulation engine.
When I was first learning how simulated physics engines in games work, like Unity or Unreal, I noticed something: there’s always a defined rule set. Every force, every reaction, every collision is governed by logic that never changes unless the developer tweaks it manually. Sound familiar?
In the real world, we have thermodynamics, relativity, and quantum mechanics, all different “modules” of logic that apply under different conditions, just like modules in a software system. And the most interesting part? No matter how deep we go, the rules hold. The simulation never breaks, unless something pushes the system to its limits, like inside black holes, where the code seems to behave strangely.
That’s when it really starts to feel like we’re running on some kind of structured simulation system. When physics breaks down, it’s not because there’s no logic, it’s because we’ve hit a region the system doesn’t fully render or where different logic applies. That’s not chaos… that’s conditional logic.
The more I think about it, the more physics feels like a real-time physics engine. It updates at frame-level precision, synchronizes across all particles in the known universe, and does it all based on underlying math. And we, humans, are just part of that system, running locally in our own processes.
Now here’s where it gets wild.
Imagine if someone, or something, set these physics laws intentionally. Maybe whoever built the simulation defined these constants the same way a coder hardcodes speed limits, object mass, or collision rules in a game. Maybe light moves at exactly 299,792,458 meters per second not because it has to, but because that’s what was typed into the config.
That thought alone opens up a bigger question: if physics is the logic system, can it be modified? Can it be bypassed or temporarily broken, say, during intense consciousness states or under the influence of substances like DMT, where people report seeing the universe from a completely different perspective?
And if so… are we still “in the game” during those moments, or have we stepped slightly outside the engine?
We don’t fully know, but what we can see is that physics, for all its complexity, behaves exactly like the rule set of a mathematically driven virtual reality. One where the code runs silently, and the logic interprets it perfectly… until it doesn’t.
And when it doesn’t, that’s where the questions really begin.
The Firewall of Consciousness
Here’s where things start to get personal for me, because I’ve always felt like there’s something just out of reach… like a layer of reality we’re not supposed to see. And the more I think about it, the more I’m convinced that our own consciousness might be protected by a kind of firewall, a barrier that filters what we’re allowed to perceive in this simulation.
I know that sounds like a stretch at first, but hear me out.
In computing, a firewall is a protective layer. It keeps a system from accessing things it shouldn’t, or from letting in signals that could harm it. What if our brain, or more accurately, our perception of reality, works the same way? What if our consciousness is shielded from the deeper levels of this simulation?
Maybe the reason we don’t see the mathematical code of the universe or the hidden architecture behind physics isn’t because it’s not there, but because our neurological system is designed to ignore it. Just like how your eyes can’t see infrared or ultraviolet, maybe your mind can’t process the “root access” of reality by default.
This makes me think of how most people live their entire lives without questioning any of this. We’re born, we observe the world, we follow the rules, we trust our senses, and we rarely stop to think, “What if this is only a limited version of the full picture?”
It almost feels intentional, like a consciousness firewall that keeps us from going too deep, too fast. A built-in limit to preserve mental stability in what might be an overwhelmingly complex reality.
But then, sometimes, something breaks through.
Whether it’s through a near-death experience, deep meditation, lucid dreaming, or powerful psychedelics like DMT, there are moments where people report feeling like they’ve “stepped outside the program.” They describe the sensation of accessing another dimension of consciousness, of seeing structures and patterns that defy everything we know about time, space, and logic.
I’ve read dozens of accounts where people say they saw “how it all works”, or that they felt like they “left their body and entered the back end of the universe.” And it makes me wonder, did they momentarily bypass the firewall? Did they gain temporary access to a higher frame of reality?
It’s almost like there’s a hidden operating system behind our day-to-day experience, and in rare moments, we’re given a glimpse under the hood. But only for a second… and only when the system allows it.
This firewall could be biological, encoded in our brain structure. Or it could be systemic, part of the simulation architecture itself, put in place by whoever built this thing. Either way, it’s there to make sure we don’t go looking for the source code too soon.
But once you start noticing the cracks, déjà vu, vivid dreams, out-of-body moments, you can’t unsee them. And once you question the firewall, you start to realize just how much of your reality might be pre-filtered, pre-processed, and pre-approved.
It’s not about paranoia. It’s about possibility. And to me, that’s far more exciting than scary.
DMT and the Break in the Firewall
Now this is where the whole idea hits another level.
If we’ve got a firewall in our consciousness, like I talked about earlier, then what happens when someone breaks through it? What tool, if any, exists that can bypass the barriers built into our minds and give us access to the source code of the universe?
That’s where DMT comes in.
If you’ve ever gone down the Reddit rabbit hole on this, or watched interviews of people who’ve taken DMT (Dimethyltryptamine), you already know it’s not your average psychedelic. What fascinates me most is the pattern in their experiences. It’s not just “colors and shapes” like you’d hear with LSD or psilocybin. It’s something else entirely.
People consistently report entering another dimension, meeting intelligent beings, seeing mechanical structures, or even watching beings “build” universes in front of their eyes. And I’m not talking about a couple random cases, I’m talking about thousands of people describing almost the same kind of journey.
That makes me wonder, is DMT a key, not just a chemical?
A kind of shortcut… like a backdoor in the simulation’s code that lets us temporarily break past the firewall of our everyday mind and get a peek behind the curtain?
I’ve read accounts where people say things like, “I wasn’t hallucinating… I was waking up.” That hits different. What if the DMT experience isn’t a distortion of reality, but a reveal of a deeper one?
From a scientific standpoint, DMT exists naturally in the human body. Some researchers believe it’s released in small amounts during dreams, near-death experiences, or extreme moments of clarity. That would explain why people often say it felt “more real than real.” Maybe because it is, in a strange way.
I know this sounds fringe, but think about it: if we’re living in a simulation, and our mind is the interface, then DMT might be the rare signal that bypasses that interface. A bridge to higher consciousness, where the beings or architects running the simulation become visible.
You might’ve heard the phrase “breaking through.” It’s used often in psychedelic culture, especially when describing DMT trips. But what are they breaking through? Most say it’s a wall, a membrane, or a curtain. That sounds a lot like the firewall of consciousness we talked about earlier.
And when they’re on the other side? People describe it as hyper-real, mathematically structured, and even “machine-like” in its precision. One user on Reddit said it felt like “a 5D program written by gods, and I was inside the core script watching it unfold.”
Isn’t that crazy? Or maybe not crazy at all.
What if these “gods” or “beings” aren’t mythical at all, but universal engineers, managing or tweaking the parameters of simulated worlds? What if DMT is the portal that lets our consciousness step momentarily into their workshop?
Even if this sounds too out-there to be fact, it’s worth questioning. Because if even one of those thousands of DMT journeys reflects a real layer of existence, then our understanding of life, reality, and self is wildly incomplete.
For me, this isn’t about promoting psychedelics. It’s about the idea that there are ways to access deeper layers of consciousness, and that our current mental firewall might be artificially limiting what we’re allowed to know.
And honestly? That’s what makes the universe feel both terrifying and incredibly exciting at the same time.
Deja Vu, Dreams & Directional Glitches
There’s something I’ve been quietly wondering about for years, maybe you have too.
You know those strange moments where you feel like you’ve lived something before, like the moment already happened, even though it logically shouldn’t have? That snap of familiarity that shows up suddenly and vanishes just as fast?
Yeah, I’m talking about Deja Vu.
Science tells us it might be just a brain loop, a moment where short-term memory gets confused with long-term memory. But deep down, does that explanation really satisfy you?
Because to me, it feels more like a glitch in the simulation. Like a piece of code that ran twice by mistake. Maybe that scene, that conversation, that feeling, it was already processed by the system, and your mind just accidentally caught a peek of it early.
It’s like reality hiccuped.
And then there are dreams, that weird little window where nothing makes sense, but somehow everything feels right.
We sleep for nearly a third of our lives. And every single night, we enter this space that’s rich in characters, symbols, memories, and even full-blown environments. Sometimes, they’re just nonsense. But sometimes… they’re hyper-detailed. Sometimes, you wake up shaking, thinking: “What the hell was that?”
So here’s my wild thought, what if dreams are alternate sessions of the simulation, running in the background? What if when we sleep, the conscious firewall drops, even slightly, and lets our mind temporarily roam in parallel layers of reality?
There’s a theory called “quantum consciousness” the idea that our mind is entangled with multiple dimensions at once. It’s not mainstream science yet, but honestly, it fits too well here. If dreams are a connection to multiversal threads, then maybe lucid dreams are us catching control of that code for a moment.
And it gets even weirder when we talk about directional perception.
We live in a world that’s locked into three spatial dimensions, up/down, left/right, forward/backward, and one timeline, which always seems to move forward.
But some theorists (and ancient philosophies, btw) talk about other directional dimensions, ones we can’t sense, like ana and kata (used in mathematics to describe movement in 4D). You ever have that sensation of moving in a dream, but not in any of those six directions? Like you were being “pulled sideways” through a hallway that didn’t exist?
Bro, what if those moments are us accidentally accessing higher-dimensional directions? Like the character in a 2D game getting dragged into 3D space, they wouldn’t understand what’s happening. To them, it would feel impossible.
Same with us.
It’s possible these directional glitches, especially during sleep or trauma, are moments when the simulation’s constraints bend slightly, or when we’re brushed by something from “outside the box.”
To bring it all together: deja vu might be a code echo, dreams might be alternate layers of reality, and directional shifts could be signs of deeper architecture in this simulation.
Maybe that’s why ancient cultures put so much emphasis on dreams, symbols, and visions. They weren’t just fantasies, they were seen as transmissions from a place beyond.
Today, we call those things hallucinations. But what if they’re just debug messages from the program?
The Multiversal Coders: Beings Beyond Our Frame
Here’s the part where I stop pretending to have concrete answers and just speak openly — as someone deeply fascinated with how far this rabbit hole might go.
If our reality is a simulation, as more physicists and thinkers are willing to entertain these days, then someone, or something, must’ve built it.
And here’s what hits me hard: What if the creators aren’t just advanced humans or AIs in a higher universe… but something we can’t even begin to comprehend, something I call the “Multiversal Coders”?
These wouldn’t be your stereotypical “aliens” or godlike figures. They might not look like anything. They might be code themselves, abstract entities, native to the substrate of the multiverse, with the capability to create, simulate, and test entire universes the way we test apps in beta mode.
Now I know this might sound like sci-fi or psychedelic fantasy, but hear me out.
During DMT experiences (and again, I’m not advocating drug use, I’m speaking from real stories shared online), countless individuals report meeting “higher beings” entities that aren’t just intelligent but fully aware of our existence, and often involved in “building” or “tending” universes. These aren’t hallucinations in the traditional sense. The encounters are detailed, consistent across cultures, and often accompanied by visuals of massive geometrical systems, grids, and code-like patterns.
Could these “beings from another dimension” be the simulation engineers, the ones who understand and operate the system at a level we never will? Some have even referred to them as “machine elves” but I think that label diminishes what they might truly be.
I call them Multiversal Coders, not because I know they exist, but because the concept makes too much sense to ignore.
They could exist outside time as we know it, operating in planes where math is the language, physics is the logic, and consciousness is the interface.
Their motivations? That’s the real mystery.
Maybe they’re running simulations to observe the evolution of consciousness. Maybe they’re training their own artificial intelligences using our universe as a sandbox. Or maybe we’re just an artistic experiment, a painting in motion, coded with equations and rendered in atoms.
It might explain why so many ancient cultures spoke of gods or beings “beyond the stars” who gave them knowledge or direction. Maybe those were early encounters, interpreted through myth, passed down through metaphor.
Today, we call them multidimensional beings or simply hallucinations. But the consistency of these encounters, both ancient and modern, makes me think there’s a layer of truth hiding behind our firewall of logic.
And think about it, if we ever develop the ability to create entire simulations of conscious worlds, wouldn’t we technically be “coders of universes” ourselves?
Maybe that’s the final stage of any intelligent civilization, not to conquer space, but to create it.
What This Theory Means for Us
If you’ve followed me this far, then maybe, like me, you’re not just reading this as science fiction or some late-night stoner thought. You’re probably wondering: “Okay, but what does all this mean for us… as humans, as individuals?”
Because let’s be real, if we are in a simulated universe, and mathematics is the code behind reality, and our consciousness is being firewalled from accessing the truth… then it changes everything. Or, at the very least, it changes how we see ourselves.
We’re no longer just flesh-and-bone humans trying to survive on a rock floating through space. We might be coded beings, living in an elegantly structured environment designed with intent, purpose, or at least some form of experiment.
But here’s where things get even deeper:
Just because we might be part of a simulation doesn’t make our experiences any less real. Pain still hurts. Love still heals. Deja vu still stuns us, and dreams still feel like messages from somewhere else. If anything, understanding that we’re part of something coded and designed could give even more weight to our lives.
The implications of a simulated universe don’t have to be cold or robotic. They could be spiritual. They could be empowering.
Because maybe, just maybe, if we’re inside a programmed reality, then that also means we have a role. That our choices, our thoughts, our emotions, feed back into something larger. That when we reflect, when we meditate, or even when we dream, we’re brushing up against the edges of that simulation — touching the code in our own way.
And if we can touch the code, maybe we can also influence it.
That’s where the real curiosity starts to unfold for me.
Could understanding the mathematical nature of the universe help us unlock new possibilities in science, in medicine, even in consciousness? Could psychedelics, dreams, deja vu, all be subtle backdoors into the system? Could higher dimensional consciousness be something we evolve into, not something separate from us?
These aren’t just abstract questions for philosophers or physicists. These are human questions. Because at the end of the day, every single one of us, regardless of who we are, is living inside this system, whether we acknowledge it or not.
And if you’ve ever felt like there’s something more going on behind the scenes…
Maybe you’re right.
Conclusion: Cracking the Cosmic Code
So, here I am, wrapping up this thought spiral with more questions than answers, and honestly, that’s the beauty of it.
This idea, that our universe might be a simulation, that mathematics is the source code and physics the logical engine, it’s not just a theory to me. It’s a lens. A different way of seeing everything around us.
And when you throw in things like deja vu, DMT experiences, dreams, and the firewall of consciousness, it stops feeling like just a scientific hypothesis and starts sounding like a cosmic breadcrumb trail, a trail left behind by something, or someone, far more advanced than us. Maybe higher-dimensional beings. Maybe creators. Or maybe we’re all just different versions of them, temporarily blindfolded inside this massive construct.
Also Read | The Edge of Existence: Zero Point Energy, Multiverse, and Spacetime Crashes
Whether we call it a digital universe, a consciousness simulation, or just a new way of understanding reality through math and physics, the truth is, something about it clicks. There’s a pattern. A structure. And if there’s one thing I’ve learned from studying patterns in the universe, it’s that they’re rarely accidental.
The more I explore this, the more I feel like we’re meant to question it.
Not everyone will, and that’s okay. But for those of us who do, maybe that’s our role in the code: to try and crack it.
Maybe we’re not supposed to find a final answer… maybe just asking the questions is the point.
To wonder. To explore.
To realize that simulated or not, this experience is real to us, and that makes it worth decoding.
What’s Next?
In the upcoming articles, I’m going to push this theory further. We’ll talk more deeply about things like:
- Can AI consciousness become self-aware inside the simulation?
- Are lucid dreams actual bridges to other realities?
- Can we identify backdoors or glitches in reality?
- What role does spirituality play in a digital universe?
Trust me, we’ve only scratched the surface of this cosmic simulation theory.
And I’d love for you to be part of this exploration with me.
If this idea got your neurons firing, even a little, let’s keep this curiosity alive.
Because if the universe is a program…
Then maybe understanding it is the most human thing we can do.
This article is also published as a Weekly Newsletter on my Personal LinkedIn so you can also review it there and connect with me directly.
Analysis by Atul Raj