r/askscience • u/MooseV2 • Mar 05 '14
Chemistry We know how elements react on an atomic level. Why can't we throw it into a computer simulation and brute force new substances?
I have a feeling it to do with us not fully understanding something rather than lack of computing power, but I can't figure out what.
1.6k
Upvotes
961
u/[deleted] Mar 05 '14
At the state of the art in computational chemistry, it's still quite difficult to make your calculations line up with known experimental data, so predicting the result of an unknown reaction is usually done with some hesitation.
As for building new substances on the computer, I do that all the time. Time is a synthetic chemist's most valuable resource, and if I can at least show with calculations that a given molecule with the desired features isn't horribly impossible, it's probably worth trying to make.
It's kind of unfortunate the some of the most important and interesting features of molecules are the hardest to model on a computer. The extremes of bonding and reactivity (very weak interactions or bonds on their way towards breaking) are exceedingly difficult to model correctly, and predictions that invoke these states are often inaccurate.
The most important thing to know is that we have the ability to correctly model nearly any molecule you can imagine. The physics governing chemistry has been known for close to 100 years now. It's the implementation that's hard. There are computational methods that allow you to access this high level of accuracy (what is called full-CI), but the compute time increases as the factorial of the number of electrons. Obviously nobody's going to use this method on a protein for a very, very long time.
95
u/LoyalSol Chemistry | Computational Simulations Mar 05 '14 edited Mar 05 '14
Ok so I am going to expand a little more. Yes we do attempt to do this using computers, BUT! Here is where things get tricky.
We can make chemical structures in a computer and have it spit out the energy to figure out if the new molecule is a stable structure. We do things like that all the time. The problem with actually applying this is that you not only need to know if a molecule is stable, but you need to have a way to actually synthesize it and here is where that becomes a problem computationally. Even if a molecule is stable if you have to go through a highly unstable intermediate to get the molecule odds are it is going to be impossible or very expensive to synthesize the compound in real life.
First of all chemical reactions computationally are actually difficult to do at times because of the complex nature of them. If we are studying an already known mechanism it can be pretty (relatively speaking) easy, but when we are looking at figuring out how to synthesize a new compound that's where it can be difficult. Because it isn’t as simple as putting molecule A next to B and typing “Calculate”. You have to figure out the angle of attack, what functional site it may attack, if any solvents might assist in the reaction, if any prior chemical reactions need to occur, etc. Basically there are so many variables to take into account that it becomes difficult.
You also have issues where the current quantum calculation methods have known issues when computing thermodynamical values over multiple reaction steps. The small errors can compound and add up to be large enough to throw your answer off completely. Lastly some of the reactions can be so detailed that it becomes infeasible to attempt the calculations because it will take too long. So in short we do have methods we can use to search for molecules, but it is by no means trivial. It takes a lot of time and effort to attempt one of these calculations.
10
u/Rastafak Solid State Physics | Spintronics Mar 05 '14
I can comment on this a bit from solid state physics perspective. We use quite similar methods as Quantum chemists in solid state physics, though we do not have any methods available that would be fully accurate for small systems. I think the reason is essentially that even very simple solids are fairly demanding computationally compared to molecules.
What we can do fairly well is predict properties of a solid with known crystal structure. These calculations are not always accurate but in many cases give quite good results. What is very difficult to do is the opposite: given some properties find a structure which has these properties. People try to do that, but it's a lot of work and there is no guaranteed success. It usually involves a lot of trial and error and it's usually based on experience with similar materials.
People calculate properties of materials that have never been synthesized regularly, but there are issues with that. One big issue is that we cannot really predict a crystal structure. We can easily do the calculation if we know the crystal structure, but finding it without any guidance from experiments is close to impossible. Another issue is that even finding whether given structure will even be stable or possible to synthesize is very difficult too. Luckily, you will find that similar materials often have similar crystal structure and can often be prepared using similar methods. So usually when we try to calculate new materials, we don't try completely exotic materials we know nothing about, but rather we try a variant of a known material. Often if you replace one atom by a different atom from the same column in periodic table many properties (including crystal structure) will remain the same.
At this point because of the issues I mentioned and because the calculations are not always accurate, the experiment is always crucial. Theoretical calculations can give tips on which materials might be interesting and they help a lot for analyzing the experimental results, but their power is limited without experiments.
7
u/PhysicalStuff Mar 05 '14
It's the other way around, in fact. We have the equations describing more or less exactly what would happen (Schrödinger equation, or Dirac equation if you want to go relativistic), but the complexity of actually solving these elegant equations grows like crazy if you add more than a few electrons to the game. So, bluntly put, we make a bunch of simplifications which turn the elegant first-principle equations into horrible-looking monsters, but also make the computations possible.
The limiting factors are the quality vs tractability of these approximations, and how much time and computing power you have acces to.
7
u/LuklearFusion Quantum Computing/Information Mar 05 '14
Simulating an arbitrary chemical reactions requires being able to simulate complex quantum systems efficiently (as described well by other commenters). In order to do this efficiently, you need a quantum computer. So even though we can do this now on a classical computer, it's horribly inefficient (or inaccurate). These kind of simulations will be one of the first uses of quantum computers.
12
u/bearsnchairs Mar 05 '14
We do computer simulations all the time. Ken Houk at UCLA is one of the top people in the fields for simulations on organic molecules. These simulations are usually not entirely accurate because there are lots of approximations used, but they are getting better all the time.
6
u/qlw Mar 05 '14
We don't even need computers to come up with new possible molecules: we know the elements, and many reactivity patterns between them.
I think the question you're asking is better written, "Why can't we pick a desired property of a compound and use a computer model to identify a compound with that property?"
One answer to this question is, we can do this, but how well we are able to do it correlates with how much we already know about why compounds have that specific property.
For this and other reasons, one of the main uses of computational chemistry is descriptive. We seek to accurately model the observed properties of known compounds, with the belief that if we do this well enough, we will be able to (a) explain the observations, and (b) predict other compounds in which we might observe similar things.
6
u/benm314 Mar 05 '14
For some reason, nobody seems to be addressing the reasons why this problem is so computationally intensive, so I'll try.
Put simply, the computation is difficult because atomic reactions are governed by quantum mechanics. Thanks to the Heisenberg uncertainty principle, a particle at rest cannot have a well-defined position. Rather, in some sense, the electrons exist everywhere at once, distributed throughout an orbital cloud. When an atom has several electrons, each of these electrons has its own cloud, and these clouds interact with each other. Moreover, these clouds are entangled with each other: for example even all the clouds of the individual electrons are thick in one region, you can't find more than one electron in the same spot. Roughly speaking, the computations involve keeping track of the probability density clouds for finding each of the electrons in every possible location, all at once. Since there is an infinite continuum of possible locations in space, the solutions can only be approximated, and the numerical errors are very difficult to control.
14
u/snowywind Mar 05 '14
I'm speaking from a computer science perspective as I have very little knowledge of atomic chemistry.
"Brute Force" is always the slowest approach to solving a problem and quickly becomes incredibly impractical for a large enough or complex enough problem.
As an example, breaking a 104 bit WiFi WEP key takes about a minute or two on a cheap laptop using statistical weaknesses in the encryption and a flaw in the protocol that allows you to get sample data to process. However to brute force your way through the entire 104 bit key space would require a system capable of 1 million checks per second running for 643 Quadrillion years.
That's just 104 yes/no, up/down/, left/right, etc. state variables and scaling that system up to supercomputer specs is going to make all the difference of filling the ocean with a fire hose instead of a squirt gun (i.e. it still isn't happening before the sun burns out).
So, we basically need to have a clever enough model of what we're looking for before we can embark on a computational search for anything with an exponential possibility space.
4
u/oneOff1234567 Mar 05 '14
In order to simulate materials exactly, you have to use quantum mechanics. Quantum mechanics can be simulated, but it uses exponential space in the number of particles because in QM, for each classical possibility you have a complex number.
For example, consider an electron that's not even moving around; its position is fixed. if we measure which way it's spinning, we'll get either clockwise ("down", 0) or counterclockwise ("up", 1). To each of these possibilities, QM assigns a complex number called an "amplitude", so to describe the state of the electron, we need two dimensions. Now suppose we have three electrons that aren't moving. There are 2³ = 8 possible outcomes (000, 001, 010, 011, 100, 101, 110, 111), so we need eight amplitudes to describe the state.
Now think of a particle in a box. Say we chop up the length, width, and height of the box into 100 chunks, so there are a million different classical possibilities for the particle's position. Now we put n particles in the box. To simulate the state of that system exactly, we need (a million to the nth power) complex numbers. If you want to simulate a mole of these particles, that's (a million to the 6x10²³ power) complex numbers to keep track of; note that there are only around 1080 particles in the universe.
N.B. I lied a little above: there's one constraint on the system, namely that all the squared magnitudes of the amplitudes sum to one. That means that instead of 2ⁿ amplitudes for n electrons with fixed positions, you need 2ⁿ - 1. It doesn't change the fact that you very quickly run out of space.
Because you can't simulate it exactly, people have come up with lots of good heuristics and have developed new materials by simulation; but developing good heuristics is a very hard problem that may not even have a solution.
3
u/BigWiggly1 Mar 05 '14
A lot of what we know about chemical reactions is experimental. What actually happens on atomic and subatomic levels during reactions is much more complicated than we are able to accurately observe (without our method of observation physically changing what is happening).
It's like you want to measure the temperature of a droplet of very hot molten metal, but all your technology has access to is a mercury thermometer. The thermometer is not going to be the same temperature as your droplet and since the droplet is so small, your thermometer will actually change the temperature of it. The same idea happens with a lot of other atomic measurements we make.
To look at the simplest hydrocarbon combustion reaction:
Methane (CH4) combusts to form H2O and CO2 when reacted with oxygen.
In reality there are many steps to the reaction, which include many free radical steps, where hydrogen atoms break off the carbon atom one at a time, taking a single electron with them. They then quickly react with their each other or a nearby oxygen atom to form H2 or some radical form of an OH molecule. If H2 forms it will quickly react again with oxygen in a similar combustion reaction. Eventually (in the span of micro-nanoseconds) the entire methane molecule will have been torn apart and it's individual pieces will have reacted with nearby atoms in some way. Atoms keep reacting until they eventually all form H2O and CO2, the most stable molecular combinations available.
That's only the simplest hydrocarbon.
Obviously all the steps in that reaction take place extremely quickly, so it's often suffice to simplify the reaction to
CH4 + O2 -> H2O + CO2
For more detail, a common intermediate step is introduced, which is the formation and subsequent destruction of CO.
CH4 + O2 -> CO + H2O
CO + O2 -> CO2 + H2O
This is by far a good enough model for all practical purposes, but when it comes to the detail we would need to start making our own combinations, we need all of that data on the small steps.
2
u/needed_an_account Mar 05 '14
As a programmer when I see the incredible healing machine in a movie like Elyslim I assume that the computer knows all possible outcomes of medicines and changes to molecules would have on the body. And then I relate it to the unit testing that we can do today and I assume that it would require millions upon millions of tests to be able to predict what a minute change would do to the whole system (human body)
2
u/schiffbased Mar 05 '14
Computational limits: There is a computational "limit;" the limit is time and resources versus practicality, availability and the need to publish. The more atoms or electrons in the computation, the more costly the computation.
Knowledge and understanding: computational studies can do a shitton, sometimes very fast paced compared to the pace of laboratory work. But the problem is that just because we can simulate it and the numbers come back reasonable does not mean that this IS THE reality as it occurs in nature. It only means that it is a possible option, it's not physically unrealistic. There's a lot of stuff that isn't physically unrealistic but still doesn't occur under the conditions which it can be observed and confirmed experimentally. You can come up with many realistic outcomes and have none of them actually occur or do what the computation or simulation predicts, for various reasons.
One big reason why computations are not solving all our problems right now is that many simulations or computations are done in a "vacuum" - in an empty 3D grid space. For many reactions - take the organic synthesis example someone already mentioned - there would be tons of solvent (e.g. water, or something else) molecules around. Or gaseous molecules. What's more, there are interactions between those solvent molecules and the other molecules in solution. It's never just a molecule, or nanoparticle, or surface, and its electrons; it's those things, plus their solvent shells. We often don't know how far out we actually need to probe, in terms of intermolecular interactions. My opinion is that it's usually not possible to go far enough. So, even if we take just an organic molecule, or a piece of DNA, we would have to tell the computer how to place the solvent molecules around it.
In addition to the space issue - there's the time issue as well. Nothing is frozen in time in reality, the way it is in many computations. Adding to the problem of placing solvent molecules around our space, we have to calculate the result of, say, what happens when a charge moves from area to another - it will cause the solvent molecules to rearrange. That needs to be taken into account. Depending on how that goes, there could be new properties and unforeseen reactions.
Unforeseen reactions is my opinion of where we really have to focus.
Another aspect often overlooked is that the computational work is still our work. We're the people writing the code and telling the computer what to do. The computer doesn't know what an electron is. To the computer, it is just a bunch of numbers. Therefor it is very easy to play out only one or a small number of possible realities, sometimes inserting our own biases. It's not so much an ethics issue as it is a need to have a priori knowledge of what we should look for.
1
u/rddman Mar 06 '14
Related questions:
How much faster would computers have to be to be able to calculate (in an amount of time that would make it practical) such a thing as protein folding, as opposed to crowd-sourcing it?
Does/should Quantum Chromodynamics play a role in those calculations, and how much of a problem is that in terms of required computational power?
1
u/morbioso Mar 05 '14
I wish I'd done a chemistry A Level. Took maths/further maths/physics but did music as the fourth so my choices weren't completely sciencey. Bad idea in hindsight. Was crap at music.
Computational chemistry sounds really cool. I think I probably would have enjoyed that. I have a maths degree so it's not all bad. :)
1
u/ascdump379 Mar 05 '14
Quick summary: it is incredibly computationally expensive to do the simulations quickly, and then it is even more expensive (time and money) to interpret the results.
Background: I've designed and worked on high performance computers just for this task. I'm in IT and my funding came from grants to researchers (highly respected, prestigious awards, etc). My high performance computers ranked in the top in the world. We modeled atomic reactions - with a goal to convert lead to gold (in a sense). My current work has many many teams of highly skilled and educated people working on high performance computing.
Essentially it is far more complicated than it appears, the number of calculations required to model or brute force via simulation is immense - beyond comprehension. Computers can do it, but you need big money to afford the resources to do simulations within a reasonable time and of reasonable scale. It's easy to generate the results if you have time and money, but it still requires a human in some form to interpret the huge amounts of data out put.
My work is small by all standards, we are throwing out one machine with hundreds of cpus, and 768GB of ram, which takes up 1 rack in the datacentre. We have hundreds of racks, thousands more computational computers - and consider a machine with hundreds of cpus and 768 GB of ram - OLD and too slow :)
1
u/censoredandagain Mar 06 '14
It comes down to what we know. We know all of the interactions between all possible two independent atoms. After all we only really need to know 92 x 92 to cover all of them, so 922 interactions for all possible distances between the two atoms. However to do chemistry we really need to know all the interactions between at least 3 atoms. This means we also need to know not only the distance between the two atoms, but the angle of the distance to the third atom, etc. So the problem is much larger than 92x92x92, it is 923 x all possible angles at all possible distances. Of course we also need this as a function of temperature, pressure, ......
It is clearly not impossible, however it one of those problems that a brute force computer program will probably still not be as good as a well educated guess from a chemist/biologist/molecularist etc.
0
u/Wendel Mar 06 '14
http://en.wikipedia.org/wiki/Noble_gas_compound
In 1933 Linus Pauling predicted that the heavier noble gases would be able to form compounds with fluorine and oxygen. Specifically, he predicted the existence of krypton hexafluoride (KrF6) and xenon hexafluoride (XeF6), speculated that XeF8 might exist as an unstable compound, and suggested that xenic acid would form perxenate salts.[1][2] These predictions proved quite accurate...
-1
u/DrTriplequad Mar 05 '14
Greg Egan writes extensively on this exact question in the sci-fi book "Permution City". He argues that we can and should do exactly what you suggest. He goes further by saying that even if the virtual physics in the simulation does not accurately represent the physical world, this only matters to those who live in "the world of force and friction". We all live there now so the difference does matter. But to a virtual human living in a virtual world, virtual physics and the resulting virtual chemistry is arguably as relevant as real-world chemistry.
-1
u/EscapeGoatee Mar 06 '14
I work at a company where we work on producing small quantities and scaling up brand new molecules for the semiconductor industry. The actual developing new ones is done other labs we own.
-5
u/Year3030 Mar 05 '14
As a programmer I was writing an app to do this in high school. One of the major issues is that there are so many minute permutations of molecules and how they interact. It gets very complicated when you have to take into account molecular electrostatics. Also the sheer volume of calculations is still staggering even if you have access to a super computer.
Probably the biggest factor is that we don't have a GUT (Grand Unified Theory) so any calculations are just hypothesis. So even though we know how chemicals react on the atomic level, we don't know exactly how everything works on a subatomic level.
Also.. I stopped writing my app because my professor came in one day and told me that someone just wrote a Nobel prize for the same kind of app that I was working on. If you want you can probably get a copy of that app ;)
0
u/[deleted] Mar 05 '14
[deleted] — view deleted comment
0
u/[deleted] Mar 05 '14
[deleted] — view deleted comment