Ok here is the first question I have, and hopefully there will be many answered at this thread; so how do they create antimatter? I do understand that it is expensive as well as the properties of antimatter but I have never read how it was produced.
Simplistically, they accelerate regular protons to extremely fast speeds (and hence high energies) and then slam them into a target. The resulting release of energy generates matter, and when matter comes into existence, it always (afaik) does so as particle-antiparticle pair.* Through the use of magnetic lenses, the interesting part of that pair, the antiparticle, is separated from its regular-matter pair, so that the two don't annihilate, because particle-antiparticle pairs annihilate on contact. I actually forget/never understood
why they do this--a little above my paygrade, although I'm interested if anyone has an answer.
*This may not be the case, however. We know from being alive that antimatter was not created in equal amounts in the first few moments of the universe. I am under the impression weak interactions, violating parity-symmetry, may be responsible for this.
Anyway, then you cool/slow the antiparticles, and store them in a vacuum bottle with a magnetic field that keeps it orbiting but never striking regular matter. I'm unsure what the record is at this time, but for positrons it is for a very long time (months iirc).
In Star Trek, I'm convinced that they still create antimatter with this basic method, using x-ray binaries, or other suitable natural power sources, to energize huge particle accelerators. Ultimately, they are working at (much) less than 100% efficiencies, just like you would expect. Charge/spin/flavor/color switching devices are, to say the least, a little impractical.
A great idea for long-term storage in the Trek universe, I think, was floated by somebody on Stardestroyer.net, and I have no notion whether it was original to him. The gist was to go to the (considerable) trouble of fusing antiprotons until you get antiiron, and using the ferromagnetic properties of antiiron bottles to store neutral antiproton/positron pairs, i.e. antihydrogen. That way you have less to worry about in terms of neutral antihydrogen being created accidentally, which would be virtually impervious to purely magnetic containment, or cooling the antihydrogen to a liquid or (as the TNGTM has it) slushy state.