Ternary computer

From HandWiki
Revision as of 16:32, 6 February 2024 by AIposter (talk | contribs) (simplify)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Computer that uses ternary logic

A ternary computer, also called trinary computer, is one that uses ternary logic (i.e., base 3) instead of the more common binary system (i.e., base 2) in its calculations. Ternary computers uses trits, instead of binary bits.

Types of states

Ternary computing deals with three discrete states, but the ternary digits themselves can be defined differently:[1]

System States
Unbalanced ternary 0 1 2
Fractional unbalanced ternary 0 12 1
Balanced ternary −1 0 1
Unknown-state logic F ? T
Ternary-coded binary T F T

Ternary quantum computers use qutrits rather than trits. A qutrit is a quantum state that is a complex unit vector in three dimensions, which can be written as [math]\displaystyle{ |\Psi\rangle = \alpha|0\rangle + \beta|1\rangle + \gamma|2\rangle }[/math] in the bra-ket notation.[2] The labels given to the basis vectors ([math]\displaystyle{ |0\rangle, |1\rangle, |2\rangle }[/math]) can be replaced with other labels, for example those given above.

History

I often reflect that had the Ternary instead of the denary Notation been adopted in the Infancy of Society, machines something like the present would long ere this have been common, as the transition from mental to mechanical calculation would have been so very obvious and simple.
—Thomas Fowler, letter to Sir George Biddell Airy[3]

One early calculating machine, built entirely from wood by Thomas Fowler in 1840, operated in balanced ternary.[4][5][3] The first modern, electronic ternary computer, Setun, was built in 1958 in the Soviet Union at the Moscow State University by Nikolay Brusentsov,[6][7] and it had notable advantages over the binary computers that eventually replaced it, such as lower electricity consumption and lower production cost.[citation needed] In 1970 Brusentsov built an enhanced version of the computer, which he called Setun-70.[6] In the United States, the ternary computing emulator Ternac working on a binary machine was developed in 1973.[8]:22

The ternary computer QTC-1 was developed in Canada.[9]

Balanced ternary

Main page: Balanced ternary

Ternary computing is commonly implemented in terms of balanced ternary, which uses the three digits −1, 0, and +1. The negative value of any balanced ternary digit can be obtained by replacing every + with a − and vice versa. It is easy to subtract a number by inverting the + and − digits and then using normal addition. Balanced ternary can express negative values as easily as positive ones, without the need for a leading negative sign as with unbalanced numbers. These advantages make some calculations more efficient in ternary than binary.[10] Considering that digit signs are mandatory, and nonzero digits are magnitude 1 only, notation that drops the '1's and use only zero and the + − signs is more concise than if 1's are included.

Unbalanced ternary

Ternary computing can be implemented in terms of unbalanced ternary, which uses the three digits 0, 1, 2. The original 0 and 1 are explained as an ordinary binary computer, but instead uses 2 as leakage current.

The world's first unbalanced ternary semiconductor design on a large wafer was implemented by the research team led by Kim Kyung-rok at Ulsan National Institute of Science and Technology in South Korea, which will help development of low power and high computing microchips in the future. This research theme was selected as one of the future projects funded by Samsung in 2017, published on July 15, 2019.[11]

Potential future applications

With the advent of mass-produced binary components for computers, ternary computers have diminished in significance. However, Donald Knuth argues that they will be brought back into development in the future to take advantage of ternary logic's elegance and efficiency.[10] One possible way this could happen is by combining an optical computer with the ternary logic system.[12] A ternary computer using fiber optics could use dark as 0 and two orthogonal polarizations of light as +1 and −1.[13]

The Josephson junction has been proposed as a balanced ternary memory cell, using circulating superconducting currents, either clockwise, counterclockwise, or off. "The advantages of the proposed memory circuit are capability of high speed computation, low power consumption and very simple construction with fewer elements due to the ternary operation."[14]

In popular culture

In Robert A. Heinlein's novel Time Enough for Love, the sapient computers of Secundus, the planet on which part of the framing story is set, including Minerva, use an unbalanced ternary system. Minerva, in reporting a calculation result, says "three hundred forty one thousand six hundred forty... the original ternary readout is unit pair pair comma unit nil nil comma unit pair pair comma unit nil nil point nil".[15]

See also

References

  1. Connelly, Jeff (2008). "Ternary Computing Testbed 3-Trit Computer Architecture". California Polytechnic State University of San Luis Obispo. http://xyzzy.freeshell.org/trinary/CPE%20Report%20-%20Ternary%20Computing%20Testbed%20-%20RC6a.pdf. 
  2. Colin P. Williams (2011). Explorations in Quantum Computing. Springer. pp. 22–23. ISBN 978-1-84628-887-6. 
  3. 3.0 3.1 Hayes, Brian (2008-04-01) (in en). Group Theory in the Bedroom, and Other Mathematical Diversions. Farrar, Straus and Giroux. ISBN 978-1-4299-3857-0. https://books.google.com/books?id=1ZkYEFi3DMMC&q=I+often+reflect+that+had+the+Ternary+instead+of+the+denary+Notation+been+adopted+in+the+Infancy+of+Society,+machines+something+like+the+present+would+long+ere+this+have+been+common,+as+the+transition+from+mental+to+mechanical+calculation+would+have+been+so+very+obvious+and+simple.&pg=PA196. 
  4. McKay, John; Vass, Pamela. "Thomas Fowler". Archived from the original on 31 May 2007. https://web.archive.org/web/20070531221517/http://myweb.tiscali.co.uk/torrington/fowler.htm. 
  5. Glusker, Mark; Hogan, David M.; Vass, Pamela (July–September 2005). "The Ternary Calculating Machine of Thomas Fowler". IEEE Annals of the History of Computing 27 (3): 4–22. doi:10.1109/mahc.2005.49. 
  6. 6.0 6.1 Nitusov, Alexander. "Nikolay Petrovich Brusentsov". Russian Virtual Computer Museum: Hall of Fame. http://www.computer-museum.ru/english/galglory_en/Brusentsov.htm. Retrieved 25 January 2010. 
  7. Trogemann, Georg; Nitussov, Alexander Y.; Ernst, Wolfgang (2001). Computing in Russia: the history of computer devices and information technology revealed. Vieweg+Teubner Verlag. pp. 19, 55, 57, 91, 104–107. ISBN 978-3-528-05757-2. .
  8. "The development of multiple-valued logic as related to computer science". Computer (IEEE) 7 (9): 20–32. 1974. doi:10.1109/MC.1974.6323304. ISSN 0018-9162. 
  9. Cho, Y. H.; Mouftah, H. T. (1988). "A CMOS ternary ROM chip". IEEE. pp. 358–363. doi:10.1109/ISMVL.1988.5195. ISBN 0-8186-0859-5. https://wwwee.ee.bgu.ac.il/~kushnero/ternary/Using%20CMOS%20gates/A%20CMOS%20ternary%20ROM%20chip.pdf. 
  10. 10.0 10.1 Knuth, Donald (1980). The Art of Computer Programming. 2: Seminumerical Algorithms (2nd ed.). Addison-Wesley. pp. 190–192. ISBN 0-201-03822-6. .
  11. "S. Korean researchers develop world's first ternary semiconductor tech". Maeil Business Newspaper. 17 July 2019. https://www.mk.co.kr/news/english/view/2019/07/533039/. 
  12. Jin Yi; He Huacan; Lü Yangtian (2005). "Ternary Optical Computer Architecture". Physica Scripta T118: 98. doi:10.1238/Physica.Topical.118a00098. Bibcode2005PhST..118...98Y. 
  13. Jin, Yi (2003). "Ternary optical computer principle" (in en). Science in China Series F 46 (2): 145. doi:10.1360/03yf9012. ISSN 1009-2757. http://www.scichina.com/yk/yf/0302/yf0145.stm. 
  14. Morisue, M.; Endo, J.; Morooka, T.; Shimizu, N.; Sakamoto, M. (1998). "A Josephson ternary memory circuit". Proceedings. 1998 28th IEEE International Symposium on Multiple- Valued Logic (Cat. No.98CB36138). pp. 19–24. doi:10.1109/ISMVL.1998.679270. ISBN 978-0-8186-8371-8. 
  15. Heinlein, Robert A. (1982). "Variations on a Theme III: Domestic Problems". Time Enough for Love. Berkley Books. p. 99. ISBN 978-0-399-11151-8. 

Further reading

  • Hunger, Francis (2007) (in en). Eine Recherche über den sowjetischen Ternarcomputer. Institut für Buchkunst Leipzig. ISBN 978-3-932865-48-0. 

External links