• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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

 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 30
11
C++
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

  •  
    Don't get me started about those stupid light bulbs.
    reply
      Bookmark Topic Watch Topic
    • New Topic