Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Allows Wolfram Mathematica users to submit quantum circuits to quantum hardware through the Strangeworks platform
Contributed by: Stuart Flannigan, Strangeworks
This repo is designed to allow Wolfram Mathematica users to communicate with the Strangeworks platform. This allows users of the Quantum Computation Framework to submit jobs to gate based quantum hardware as well to a wider range of alternative compute providers, see full catalogue.
More information on getting started can be found on our documentation page.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["Strangeworks/Strangeworks"]
To load the code after installation, evaluate this code:
Needs["Strangeworks`Strangeworks`"]
A user must go through the following steps to be able to run jobs:
🥳 Success! You may view your job in the portal. 😅 Something went wrong? Find us in Slack!
Load in Wolfram's QuantumFramework:
Create quantum circuit with the QuantumFramework:
In[1]:= |
Out[2]= |
Authenticate with Strangeworks, user must put in their own apikey and resourceslug:
In[3]:= |
Out[6]= |
Out[7]= |
Display the currently available backends:
In[8]:= |
Out[8]= |
Submit job to the ibm simulator. To run on hardware simply change the backend name:
In[9]:= |
Out[11]= |
In[12]:= |
Out[12]= |
Can then also check on the status of your job:
In[13]:= |
Out[13]= |
And also the returned results:
In[14]:= |
Out[14]= |
Plot results:
In[15]:= |
Out[16]= |
Wolfram Language Version 13.1