Win a copy of Spark in Action this week in the Open Source Projects 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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: 30
11
C++
  • Likes 1
  • 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'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
      Bookmark Topic Watch Topic
    • New Topic