vttoth

I am a software developer and author of computer books. I also work on some problems in theoretical physics. For more information, please visit my personal Web site at http://www.vttoth.com/.

Mar 152021
 

The cartoon series The Simpsons is into its 32nd season this year. It has been picked up for at least another two seasons by Fox.

The Simpsons depicts a “typical” American family of five: Homer the breadwinner, with only a high-school diploma, holding a dead-end but secure job as a safety inspector at the Springfield Nuclear Plant, Marge the housewife, mother of three children and the three kids, two of them school-age, one still a toddler. The Simpsons live in a detached house in a suburb and own two cars. They are not rich, but they do have disposable income: Homer spends his evenings gulping down beer as Moe’s Tavern, Marge never seems to have a problem paying for groceries.

In other words, The Simpsons live the American dream: a comfortable North American middle class lifestyle from a single income.

A dream that, as lamented in a recent opinion article in The Atlantic, is no longer attainable.

This, I think, really explains it all. The polarization of American politics. The emergence of extremism. The appeal of slogans like “Make America Great Again”. The “we have nothing to lose” attitude that led many to vote for Trump, despite their misgivings.

And it is by no means a US-only phenomenon. Income inequality may not be as bad in Canada as it is in the US, but the middle class is not doing spectacularly well here either. Europe, too, is not heading in the right direction.

Lest we forget the lessons of history, this is precisely what provides fertile ground for totalitarian ideologies like fascism and communism. When liberal democracy fails to deliver on society’s most basic promise, the ability to provide a life as good as, but preferably better than your own for your children, people turn to other ideas. That was just as true a century ago as it is today.

 Posted by at 10:52 pm
Mar 142021
 

The next in our series of papers describing the extended gravitational lens (extended, that is, in that we are no longer treating the lensing object as a gravitational monopole) is now out, on arXiv.

Here’s one of my favorite images from the paper, which superimposes the boundary of the quadrupole caustic (an astroid curve) onto a 3D plot showing the amplitude of the gravitational lens’s point-spread function.

I was having lots of fun working on this paper. It was, needless to say, a lot of work.

 Posted by at 9:18 pm
Mar 142021
 

I am reading about Heino Falcke.

Dr. Falcke is a scientist. He is the leader of the Event Horizon Telescope project, the first successful attempt to image the event horizon (actually, the shadow of the photon sphere cast on the accretion disk background) of a black hole.

One of the Event Horizon Telescope participating facilities, at Pico Veleta

Dr. Falcke also happens to be religious. A lay pastor, no less, in the Protestant Church in the Netherlands.

He represents yet another example of how faith and the sciences need not be in conflict.

I happen to be nonreligious. I even mock religion (not the religious! Never!) occasionally when I talk about “imaginary friends”, “sky daddy” or the “Flying Spaghetti Monster”. My mockery is not intended to hurt: rather, this truly is how I feel about these supernatural concepts, as surreal, outlandish flights of fancy, fairy tales, nothing more.

Yet I think I understand how faith can also give strength to people. Offer motivation. Fill their lives with meaning.

It has been invariably my experience that the company of a person of faith who is open-minded and capable of critical thinking is much preferable to that of a dogmatic atheist.

In any case, while I may not have much respect for the supernatural aspects of religion, I certainly take no issue with the basic tenets of Christianity, such as loving thy neighbor or not committing murder. If the core message of religion is to try to be a decent human being, well, I don’t need to believe in imaginary friends to accept and fully embrace these principles.

This always reminds me how the best description of Christianity I ever came across came from a devoted atheist, the late Douglas Adams (of Hitchhiker’s Guide to the Galaxy fame): “And then, one Thursday, nearly two thousand years after one man had been nailed to a tree for saying how great it would be to be nice to people for a change […]”

 Posted by at 6:38 pm
Mar 142021
 

Because I’ve been asked a lot about this lately, I thought I’d also share my own take on this calculation in my blog.

Gravitoelectromagnetism (or gravitomagnetism, even gravimagnetism) is the name given to a formalism that shows how weak gravitational fields can be viewed as analogous to electromagnetic fields and how, in particular, the motion of a test particle is governed by equations that are similar to the equations of the electromagnetic Lorentz-force, with gravitational equivalents of the electric and magnetic vector potentials.

Bottom line: no, gravitoelectromagnetism does not explain the anomalous rotation curves of spiral galaxies. The effect is several orders of magnitude too small. Nor is the concept saved by the realization that spacetime is not asymptotically flat, so the boundary conditions must change. That effect, too, is much too small, at least five orders of magnitude too small in fact to be noticeable.

To sketch the key details, the radial acceleration on a test particle due to gravitoelectromagnetism in circular orbit around a spinning body is given roughly by

$$a=-\frac{4G}{c^2}\frac{Jv}{r^3},$$

where \(r\) is the orbital speed of the test particle. When we plug in the numbers for the solar system and the Milky Way, \(r\sim 8~{\rm kpc}\) and \(J\sim 10^{67}~{\rm J}\cdot{\rm s}\), we get

$$a\sim 4\times 10^{-16}~{\rm m}{\rm s}^2.$$

This is roughly 400,000 times smaller than the centrifugal acceleration of the solar system in its orbit around the Milky Way, which is \(\sim 1.6\times 10^{-10}~{\rm m}/{\rm s}^2.\)

Taking into account that our universe is not flat, i.e., deviations from the flat spacetime metric approach unity at the comoving distance of \(\sim 15~{\rm Gpc},\) only introduces a similarly small contribution on the scale of a galaxy, of \({\cal O}(10^{-6})\) at \(\sim 15~{\rm kpc}.\)

A more detailed version of this calculation is available on my Web site.

 Posted by at 1:14 pm
Mar 062021
 

I just came across this painting on Twitter.

I find it poignantly beautiful. According to the description by the artist, Antony John, the cow in the painting is old, on her last pregnancy, as she stares outside at a late winter Southwestern Ontario landscape. The equipment in the room may appear scary but it is nothing sinister. It is used to help with difficult pregnancies; the artist also intended it as a metaphor representing the inexorable pull of time.

I fell in love with this painting the moment I saw it.

 Posted by at 5:20 pm
Mar 012021
 

Now it is time for me to be bold and contrarian. And for a change, write about physics in my blog.

From time to time, even noted physicists express their opinion in public that we do not understand quantum physics. In the professional literature, they write about the “measurement problem”; in public, they continue to muse about the meaning of measurement, whether or not consciousness is involved, and the rest of this debate that continues unabated for more than a century already.

Whether it is my arrogance or ignorance, however, when I read such stuff, I beg to differ. I feel like the alien Narim in the television series Stargate SG-1 in a conversation with Captain (and astrophysicist) Samantha Carter about the name of a cat:

CARTER: Uh, see, there was an Earth physicist by the name of Erwin Schrödinger. He had this theoretical experiment. Put a cat in a box, add a can of poison gas, activated by the decay of a radioactive atom, and close the box.
NARIM: Sounds like a cruel man.
CARTER: It was just a theory. He never really did it. He said that if he did do it at any one instant, the cat would be both dead and alive at the same time.
NARIM: Ah! Kulivrian physics. An atom state is indeterminate until measured by an outside observer.
CARTER: We call it quantum physics. You know the theory?
NARIM: Yeah, I’ve studied it… in among other misconceptions of elementary science.
CARTER: Misconception? You telling me that you guys have licked quantum physics?

What I mean is… Yes, in 2021, we “licked” quantum physics. Things that were mysterious in the middle of the 20th century aren’t (or at least, shouldn’t be) quite as mysterious in the third decade of the 21st century.

OK, let me explain by comparing two thought experiments: Schrödinger’s cat vs. the famous two-slit experiment.

The two-slit experiment first. An electron is fired by a cathode. It encounters a screen with two slits. Past that screen, it hits a fluorescent screen where the location of its arrival is recorded. Even if we fire one electron at a time, the arrival locations, seemingly random, will form a wave-like interference pattern. The explanation offered by quantum physics is that en route, the electron had no classically determined position (no position eigenstate, as physicists would say). Its position was a combination, a so-called superposition of many possible position states, so it really did go through both slits at the same time. En route, its position operator interfered with itself, resulting in the pattern of probabilities that was then mapped by the recorded arrival locations on the fluorescent screen.

Now on to the cat: We place that poor feline into a box together with a radioactive atom and an apparatus that breaks a vial of poison gas if the atom undergoes fission. We wait until the half-life of that atom, making it a 50-50 chance that fission has occurred. At this point, the atom is in a superposition of intact vs. split, and therefore, the story goes, the cat will also be in a superposition of being dead and alive. Only by opening the box and looking inside do we “collapse the wavefunction”, determining the actual state of the cat.

Can you spot a crucial difference between these two experiments, though? Let me explain.

In the first experiment involving electrons, knowledge of the final position (where the electron arrives on the screen) does not allow us to reconstruct the classical path that the electron took. It had no classical path. It really was in a superposition of many possible locations while en route.

In the second experiment involving the cat, knowledge of its final state does permit us to reconstruct its prior state. If the cat is alive, we have no doubt that it was alive all along. If it is dead, an experienced veterinarian could determine the moment of death. (Or just leave a video camera and a clock in the box along with the cat.) The cat did have a classical state all throughout the experiment, we just didn’t know what it was until we opened the box and observed its state.

The crucial difference, then, is summed up thus: Ignorance of a classical state is not the same as the absence of a classical state. Whereas in the second experiment, we are simply ignorant of the cat’s state, in the first experiment, the electron has no classical state of position at all.

These two thought experiments, I think, tell us everything we need to know about this so-called “measurement problem”. No, it does not involve consciousness. No, it does not require any “act of observation”. And most importantly, it does not involve any collapse of the wavefunction when you really think it through. More about that later.

What we call measurement is simply interaction by the quantum system with a classical object. Of course we know that nothing really is classical. Fluorescent screens, video cameras, cats, humans are all made of a very large but finite number of quantum particles. But for all practical (measurable, observable) intents and purposes all these things are classical. That is to say, these things are (my expression) almost in an eigenstate almost all the time. Emphasis on “almost”: it is as near to certainty as you can possibly imagine, deviating from certainty only after the hundredth, the thousandth, the trillionth or whichever decimal digit.

Interacting with a classical object confines the quantum system to an eigenstate. Now this is where things really get tricky and old school at the same time. To explain, I must invoke a principle from classical, Lagrangian physics: the principle of least action. Almost all of physics (including classical mechanics, electrodynamics, even general relativity) can be derived from a so-called action principle, the idea that the system evolves from a known initial state to a known final state in a manner such that a number that characterizes the system (its “action”) is minimal.

The action principle sounds counterintuitive to many students of physics when they first encounter it, as it presupposes knowledge of the final state. But this really is simple math if you are familiar with second-order differential equations. A unique solution to such an equation can be specified in two ways. Either we specify the value of the unknown function at two different points, or we specify the value of the unknown function and its first derivative at one point. The former corresponds to Lagrangian physics; the latter, to Hamiltonian physics.

This works well in the context of classical physics. Even though we develop the equations of motion using Lagrangian physics, we do so only in principle. Then we switch over to Hamiltonian physics. Using observed values of the unknown function and its first derivative (think of these as positions and velocities) we solve the equations of motion, predicting the future state of the system.

This approach hits a snag when it comes to quantum physics: the nature of the unknown function is such that its value and its first derivative cannot both be determined as ordinary numbers at the same time. So while Lagrangian physics still works well in the quantum realm, Hamiltonian physics does not. But Lagrangian physics implies knowledge of the future, final state. This is what we mean when we pronounce that quantum physics is fundamentally nonlocal.

Oh, did I just say that Hamiltonian physics doesn’t work in the quantum realm? But then why is it that every quantum physics textbook begins, pretty much, with the Hamiltonian? Schrödinger’s famous equation, for starters, is just the quantum version of that Hamiltonian!

Aha! This is where the culprit is. With the Hamiltonian approach, we begin with presumed knowledge of initial positions and velocities (values and first derivatives of the unknown functions). Knowledge we do not have. So we evolve the system using incomplete knowledge. Then, when it comes to the measurement, we invoke our deus ex machina. Like a bad birthday party surprise, we open the magic box, pull out our “measurement apparatus” (which we pretended to not even know about up until this moment), confine the quantum system to a specific measurement value, retroactively rewrite the description of our system with the apparatus now present all along, and call this discontinuous change in the system’s description “wavefunction collapse”.

And then spend a century about its various interpretations instead of recognizing that the presumed collapse was never a physical process: rather, it amounts to us changing how we describe the system.

This is the nonsense for which I have no use, even if it makes me sound both arrogant and ignorant at the same time.


To offer a bit of a technical background to support the above (see my Web site for additional technical details): A quantum theory can be constructed starting with classical physics in a surprisingly straightforward manner. We start with the Hamiltonian (I know!), written in the following generic form:

$$H = \frac{p^2}{2m} + V({\bf q}),$$

where \({\bf p}\) are generalized momenta, \({\bf q}\) are generalized positions and \(m\) is mass.

We multiply this equation by the unit complex number \(\psi=e^{i({\bf p}\cdot{\bf q}-Ht)/\hbar}.\) We are allowed to do this trivial bit of algebra with impunity, as this factor is never zero.

Next, we notice the identities, \({\bf p}\psi=-i\hbar\nabla\psi,\) \(H\psi=i\hbar\partial_t\psi.\) Using these identities, we rewrite the equation as

$$i\hbar\partial_t\psi=\left[-\frac{\hbar^2}{2m}\nabla^2+V({\bf q})\right]\psi.$$

There you have it, the time-dependent Schrödinger equation in its full glory. Or… not quite, not yet. It is formally Schrödinger’s equation but the function \(\psi\) is not some unknown function; we constructed it from the positions and momenta. But here is the thing: If two functions, \(\psi_1\) and \(\psi_2,\) are solutions of this equation, then because the equation is linear and homogeneous in \(\psi,\) their linear combinations are also solutions. But these linear combinations make no sense in classical physics: they represent states of the system that are superpositions of classical states (i.e., the electron is now in two or more places at the same time.)

Quantum physics begins when we accept these superpositions as valid descriptions of a physical system (as indeed we must, because this is what experiment and observation dictates.)

The presence of a classical apparatus with which the system interacts at some future moment in time is not well captured by the Hamiltonian formalism. But the Lagrangian formalism makes it clear: it selects only those states of the system that are consistent with that interaction. This means indeed that a full quantum mechanical description of the system requires knowledge of the future. The apparent paradox is that this knowledge of the future does not causally influence the past, because the actual evolution of the system remains causal at all times: only the initial description of the system needs to be nonlocal in the same sense in which 19th century Lagrangian physics is nonlocal.

 Posted by at 12:48 pm
Feb 272021
 

Today’s “what on Earth were they thinking” moment arrived in the form of a statue:

Yes, a golden statue of Donald Trump.

Apparently, it’s not a joke. It is a bona fide prop for this weekend’s CPAC (Conservative Political Action Conference).

Apart from the blatantly obvious (even to heathen nonbelievers like me) reference to the Bible and its admonition concerning the Golden Calf, there are also the more modern-day comparisons to personality cults, such as those of Joseph Stalin or Trump’s BFF Kim Jong Un.

How could the party of Abraham Lincoln and Ronald Reagan sink this far, this quickly?

Just how badly broken is the American body politic for us to witness this… this abomination?

The mind boggles. I’ll leave it at that as I really have no answer and no coherent thoughts as I continue to stare at this deeply disturbing image.

 Posted by at 12:24 am
Feb 182021
 

I really cannot tell which impresses me more: The incredibly complex landing or the fact that there is now a de facto infrastructure in orbit around Mars, in the form of earlier spacecraft that provide communications relay capabilities for real-time tracking of the landing.

Or perhaps the fact that Perseverance also carries the Ingenuity helicopter. If successful, it will be the first drone to fly in the atmosphere of another planet.

The children of future settlers on Mars will be learning about these moments in school.

 Posted by at 4:06 pm
Feb 152021
 

A Dallas-Fort Worth TV station characterized Texas as the energy capital of the world as it asked the rhetorical question: How could this happen?

I have friends in Texas. One of them e-mailed me to let me know that they’ve been without power since 5 AM this morning.

Unlike the US-Canadian northeast with its interconnected power grid, Texas has its own power grid. This means, I understand, that they cannot rely on excess generating capacity in neighboring states to help with the crisis.

And the weather is bitterly cold, much colder than up here in wintry Ottawa. Right now, according to that Dallas-Fort Worth TV station it’s 8 degrees Fahrenheit but it will drop to several degrees below zero on the Fahrenheit scale overnight; that’s -20 C for us folks in metric lands.

This is not a joke. In weather like this, people can die, especially in ill-insulated homes as they struggle with unexpected secondary disasters such as bursting, frozen pipes that may very well happen.

 Posted by at 10:42 pm
Feb 102021
 

Sometimes, simple programming mistakes make for interesting glitches.

Take this image:

No, this is not something that a gravitational lens would produce. Or any lens.

Even-numbered multipoles in a gravitational lens produce images that have fourfold symmetry. This allows me to reduce the amount of computation needed to generate an image, as I only need to generate one quarter; the rest are just copied over.

But this is not true for odd-numbered multipoles. This image was supposed to represent the J3 multipole, which would yield a triangular shape.

Unfortunately, I generated it accidentally by assuming the symmetries of an even-numbered multipole.

I kind of like the result, even though it is of course scientifically worthless. It still looks neat though.

 Posted by at 12:36 pm
Feb 062021
 

In recent days, especially in light of the sudden drop in vaccine deliveries in Canada, I saw a lot of criticism aimed at the Canadian government and its perceived failure to secure vaccine supplies or vaccine manufacturing in Canada.

Reality is a little bit more nuanced. Manufacturing a 21st century vaccine is not exactly something that can be done anywhere. The fact that Canada doesn’t presently have the expertise or infrastructure is lamentable but that’s the result of a decades-long trend, not the decisions of the past several months.

Meanwhile in Hungary, Orban’s government is criticized for telling people that they will be vaccinated with whichever vaccine is available at the time; if you don’t like the vaccine being offered, you’re sent to the back of the line. A bit harsh, to be sure, but this is a bleeping global health emergency. Orban’s government may be criticized for acting in haste when they approved the Chinese and Russian vaccines (although the Russian vaccine seems effective; the Chinese vaccine is probably also fine, what is questionable is the ethical shortcuts they took with the testing and approval process). But acting in an authoritarian fashion when there is a global health emergency is precisely what even the most liberal, most democratic governments are expected to do. Orban can, and should, be criticized for undermining the country’s democratic institutions, its press freedoms, its judicial independence, its constitutional principles, but not for acting decisively when decisive action is needed during a pandemic.

 Posted by at 6:29 pm
Jan 282021
 

Every once in a while, strange coincidences occur that make me wonder if we live in a simulation after all.

Take today. Just moments ago, I ran across a tweet by Trump’s former director of communications (for 10 days), Anthony Scaramucci:

I found the reference to Max Headroom amusing; it’s been a while since I last saw any mention of this once iconic television series (which I happened to like very much.)

But then, no more than two minutes later, I ran across a Quora question that I was asked to answer, only to find an existing answer (good one, incidentally) that begins with a quote:

What exactly are the odds that I run across two completely unrelated Max Headroom references within minutes of each other?

Of course the fact that Max Headroom was an AI personality living its own virtual existence is just icing on the proverbial cake…

 Posted by at 8:27 pm
Jan 262021
 

Today, I had to widen a column in an Excel spreadsheet in which I record some numbers.

It is a spreadsheet that I use to keep track of confirmed COVID-19 cases.

The actual number of cases is likely much higher, since systematic testing is not available everywhere, and even where it is, people with milder symptoms or no symptoms at all may not get tested.

This number is also accompanied by the number of known COVID-19 fatalities: well over 2 million and counting, with the end nowhere in sight. COVID-19 may yet put the Spanish Flu to shame, despite a century of progress in medical science, despite the scientific miracle of rapidly developed, engineered I should say, mRNA vaccines.

 Posted by at 12:24 pm
Jan 242021
 

Let me begin with a simple statement: I am not a parler.com fan.

But free speech is not about the freedom to publish things we all like. It is about the freedom to publish things we hate. Things that we find disgusting, revolting, reprehensible.

Of course, there has to be a line drawn somewhere. It is one thing to publish a racist rant about the inferiority of some human beings. It is another thing to call for genocide. Somewhere between these two is (or should be) a clear bright line: criminal “hate speech” is speech that calls for violence, speech that instructs readers to commit a crime.

Arguably, parler.com crossed this line multiple times when it failed to remove posts calling for violence against lawfully elected or appointed public officials, when it called for a violent uprising against the lawful government of the United States.

So what is my problem, then? Simple: I am alarmed by the idea that we are outsourcing the (legitimate, necessary) policing of the boundaries between free speech and criminal speech to corporations. Not just social media corporations like Facebook and Twitter, but also to corporations that provide fundamental Internet infrastructure, such as Amazon’s AWS.

As private corporations, these companies are of course well within their rights to deny their platforms to anyone, for whatever reason. But is this the world in which we wish to live? Where private corporations manage our fundamental communication infrastructure and decide who can or cannot communicate with the public?

This does not bode well for the future.

When the commercial Internet emerged, Internet Service Providers asked to be viewed by the law much like telephone companies: common carriers, that is, who are responsible for providing an infrastructure, but are not responsible for the content. (The telephone company does not become an accomplice by providing the service through which criminals arrange a crime.) But social media blurs this line, since these companies become the curators of user-supplied content, which they prioritize, filter, and use for advertising. And companies like AWS must be mindful of the content supplied through their infrastructure, since there are repercussions: letting an AWS VM spit out spam, for instance, can cause other service providers to block a range of AWS IP numbers affecting a large number of well-behaved AWS users.

But now, we have service providers that police political content. Even attaching labels like “the factual accuracy of this item is disputed” is questionable: Who disputes it? How can I trust the objectivity of the fact checkers who attach such labels? But things get much worse when Facebook or Twitter altogether ban someone like Trump from their respective platforms, or when AWS kicks out parler.com.

I am not questioning the judgment behind these individual cases. I am not questioning the necessity behind the decisions. Rather, I am questioning the haphazard, arbitrary, opaque process that lead to these actions. How can the same process that, say, led to Trump’s lifetime ban on Twitter still permit religious extremists, dictators and worse to spread hate or promote acts far more criminal than anything Trump has done?

There has to be a better way.

And I think there is a better way. Now is the time, I think, for this industry to create a nonprofit council that establishes and manages standards, adjusted if necessary to take into account applicable law in different jurisdictions. The institution should be arms-length, with secure funding, so that its decisions would not be swayed by undue influences or funding concerns. The process should be entirely transparent. And companies, especially social media and cloud computing infrastructure companies, should abide by the standards set by this council.

The alternative is just unacceptable. I don’t care how well-intentioned Facebook or Twitter or Amazon are, I do not wish our freedom of expression in our digital future to be opaquely managed by for-profit corporations.

 Posted by at 1:47 pm
Jan 212021
 

I really don’t like power outages.

Today we had one.

Needless to say, Murphy’s law was also fully at work. I decided to shut everything down when it appeared that power was not going to come back soon (a fairly large area of Ottawa was affected), and of course, power came back two minutes later. But one of my UPSs didn’t come back online and needed a hard reset (unplug, remove the battery pack) while my desktop computer didn’t like it that suddenly a whole bunch of external hard drives, normally powered down, came to life as it was coming back from hibernation, and so it promptly crashed.

Oh, did I say that I don’t like power outages? I really don’t. Fortunately, as I recall, this was our first unscheduled power outage since the great Northeast blackout of 2003. So they do not happen often.

Still hate them, though.

 Posted by at 6:10 pm
Jan 172021
 

Coups d’état don’t succeed without support from the armed forces. That’s a historic given.

So when strangely clad “warriors” wearing fur hats and tattoos storm the Capitol Building in Washington DC, the sights are unsettling, people may die, but the stability of the United States government is not in any way in question.

But what happens when the troops who are supposed to prevent it from happening again themselves come under suspicion?

Just read the headline from the following Associated Press news release from minutes ago:

Defense officials fear possible inside attack at inauguration, will have National Guard troops vetted.

Just how the bleep do you vet over 20,000 troops hastily sent to Washington in less than 72 hours?

And what will that vetting do to their morale?

I am beginning to feel truly frightened.

 Posted by at 9:50 pm