Strangeworks/Strangeworks

(1.0.0) current version: 1.0.7 »

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.

Installation Instructions

To install this paclet in your Wolfram Language environment, evaluate this code:
PacletInstall["Strangeworks/Strangeworks"]

Details

A user must go through the following steps to be able to run jobs

Download and authenticate Wolfram, free trials available. Skip this if you already have a license.
Load the QuantumFramework Paclet.
Load this Paclet.
Sign up for free to our platform
Add the free IBMQ resource
Put in your apiKey from the homepage and resource id from the resource page and run the example for IBM below

🥳 Success! You may view your job in the portal. 😅 Something went wrong? Find us in Slack!

For other resources, such as AWS Braket, contact hello@strangeworks.com to add them to your account

Examples

Basic Example For IBM (4) 

Create quantum circuit with the QuantumFramework:

In[1]:=
ops = {QuantumOperator["H", {1}], QuantumOperator["CX", {1, 2}], QuantumOperator["H", {1}], {1}, {2}};
qc = QuantumCircuitOperator[ops]; qc["Diagram"]
Out[2]=

Authenticate with Strangeworks, user must put in their own apikey and resourceslug:

Display the currently available backends:

Submit job to the ibm simulator. To run on hardware simply change the backend name:

Scope (3) 

Can then also check on the status of your job:

In[3]:=
status = StatusSW[jobslug]

And also the returned results:

Plot results:

Publisher

Strangeworks

Compatibility

Wolfram Language Version 13.1

Version History

  • 1.0.7 – 18 April 2024
  • 1.0.6 – 30 October 2023
  • 1.0.5 – 27 October 2023
  • 1.0.4 – 01 June 2023
  • 1.0.3 – 12 May 2023
  • 1.0.2 – 12 May 2023
  • 1.0.0 – 12 May 2023
  • 0.0.1 – 12 May 2023

License Information

Apache License 2.0

Paclet Source