Git Product home page Git Product logo

client-superstaq's People

Contributors

1ucian0 avatar alexabuko avatar andrewlitteken avatar bharat-thotakura avatar burgholzer avatar cjguttormsson avatar colincampbellcq avatar dependabot[bot] avatar dhirpalshah avatar dowusu-antwi avatar dreamzupabove avatar epelaaez avatar foobar41 avatar hallben4 avatar kabirdubey avatar knsmith avatar paaige avatar palashgoiporia avatar perlinm avatar pgoiporia avatar pnoell avatar richrines1 avatar rohansk1 avatar saeubank avatar salahedeenissa avatar singular-value avatar stephanielee9 avatar teaguetomesh avatar vtomole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

client-superstaq's Issues

`400 Client Error: BAD REQUEST for url: https://superstaq.super.tech/v0.1.0/aqt_compile`

import qiskit
import qiskit_superstaq

provider = qiskit_superstaq.superstaq_provider.SuperstaQProvider("token")

circuit1 = qiskit.QuantumCircuit(8)
for i in range(4, 8):
    circuit1.h(i)
circuit1.draw(fold=-1)

compiler_output = provider.aqt_compile(circuit1)

Throws HTTPError: 400 Client Error: BAD REQUEST for url: https://superstaq.super.tech/v0.1.0/aqt_compile

service_test.py fails with applications-superstaq==0.0.3

pytest passes with applications-superstaq==0.0.2 but not 0.0.3

This is because in applications_superstaq==0.0.3 the following output dataclasses were updated to require a qubo element:

finance.MinVolOutput
finance.MaxSharpeOutput
logistics.TSPOutput
logistics.WarehouseOutput

Fix could be either to pass qubo arguments in service_test.py, or make these elements optional in applications-superstaq. Either way requirements.txt should probably specify the version of applications-superstaq

Make use of either `target` or `backend` consistent

E.g., in service.py we use target:
https://github.com/SupertechLabs/cirq-superstaq/blob/1af069ad78f030d6887cd0e8d585f1cad49bd1f3/cirq_superstaq/service.py#L260-L262

while in superstaq_client.py we use backend:

https://github.com/SupertechLabs/cirq-superstaq/blob/1af069ad78f030d6887cd0e8d585f1cad49bd1f3/cirq_superstaq/superstaq_client.py#L222

More of a nit, and I've mostly seen target when used as a parameter or keyword, but as @richrines1 pointed out it's probably a good idea to standardize our language on it, at least moving forward.

Support for qubos

  1. Common code goes in application-superstaq: conversion functions, take a qubo and convert to model, take recarray output string and convert to real recarray.
  2. cirq-superstaq imports application-superstaq: service.py (gets back recarray string) and superstaq-client (does the posting)

Implement `backend.configuration().n_qubits`

import qiskit_superstaq

token = """token"""
superstaq = qiskit_superstaq.superstaq_provider.SuperstaQProvider(token)
backend = superstaq.get_backend("rigetti_aspen")

print(backend.configuration().n_qubits) # should print 32, but it prints -1 instead

`create_job()` shouldn't include unset values in request

currently ibmq_token, ibmq_group, self.ibmq_hub, and ibmq_project get sent to the server even when their value is None. they should be excluded from the json_dict in superstaq_client.create_job() unless they're given a value

less specific requirements

  • qubovert==1.2.3 should be qubovert>=1.2.3 as in cirq_superstaq
  • numpy requirement should be less specific. Currently cirq requires numpy~=1.16 and qiskit requires numpy>=1.17 - do we need 1.20?

`AQTCompilerOutput` should have a `_repr_pretty_` method

especially with a lot of circuits or pulse sequence data, the repr() string of AQTCompilerOutput gets pretty unweildy when it's displayed in an ipython console or jupyter notbook. _repr_pretty_() would add an abbreviated/human-readable display representation to be used by ipython/jupyter. This is what's done by cirq.Circuit, for example

(probably applies to other classes in *_superstaq as well)

Remove unneeded cirq dependency in qiskit-superstaq

Right now, we convert qiskit circuits to cirq circuits just so that we can call cirq.to_json(circuit) and get a JSON-serialized version. But then on the server, we go back down to the qiskit circuit anyways.

There should be a way to get qiskit circuits down to a serialized format; there shouldn't be a need for a cirq dependency.
repr(qc) doesn't work, but maybe just taking the qc.qasm() would work.

Add documentation for developer to suppress InsecureRequestWarnings

(Migrating issue from SuperstaQ)

InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(

Likely to do with the need to set verify = False somewhere.

Define `backend.configuration().max_experiments`

import qiskit_superstaq

token = """token"""
superstaq = qiskit_superstaq.superstaq_provider.SuperstaQProvider(token)
backend = superstaq.get_backend("rigetti_aspen")

print(backend.configuration().max_experiments) # Raises an `AttributeError: Attribute max_experiments is not defined` error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.