Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Welcome Eric! Can you use Java to program a Quantum Processor?

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,

The description of the book talks of various techniques and concepts but, for me, leaves one question unanswered:
As a Java developer of many years, will I be able to use Java to use Quantum Processors (QPUs)?
Having seen your answer in thread https://coderanch.com/t/708288/quantum/engineering/quantum-computing-kicks-happen-Java then the answer seems to be ‘yes’ with the appropriate native libraries (and of course when running on the appropriate hardware or simulator).

So my question becomes more: ‘what language is/can be used to develop these native libraries for QPUs? Is this more assembly-like or are there already compilers for higher level abstractions?’

Thanks!
 
Author
Posts: 28
10
C++
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Roger Yates wrote:‘what language is/can be used to develop these native libraries for QPUs? Is this more assembly-like or are there already compilers for higher level abstractions?’


Hi Roger,
As you mention per the other Java thread, code to use the libraries can be developed in any language.

To develop the libraries themselves, it depends on whether you're doing...
  • ...a QPU simulation in which case any language will do; at work I use C++ and asm to make it fast, but the one I wrote which runs the book samples is all in JavaScript, just so that readers can click one button and see it go. If you want an open-source library to build on top of, then something like Qiskit (which is in Python) might be a great starting point.
  • ...or a driver for a physical QPU in which case the language used at the low level of your library may be constrained by specific needs of your hardware, but you can probably still provide high-level interfaces in any languagfe you like.

  •  
    I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!