Comments (2)
As a side note - the Azure SDK Python guidelines state the following:
The service client is the primary entry point for users of the library. A service client exposes one or more methods that allow them to interact with the service.
✅ DO expose the service clients the user is more likely to interact with from the root namespace of your package. Specialized service clients may be placed in sub-namespaces.
✅ DO name service client types with a Client suffix.
In our case the Workspace
is the client and in order to be consistent with the guidelines should be renamed to WorkspaceClient
.
The usage of factory methods (using @classmethod
) is encouraged; e.g. Job.from_response
.
from azure-quantum-python.
After some discussion and API review I propose the following design:
- Add a
submit_job
method toWorkspace
- Create a new
Target
class that is a thin wrapper aroundWorkspace
and with asubmit
method that takes input data, serializes it, uploads it to the blob storage and returns aJob
- Add factory methods to
Job
that construct an instance both from serialized and deserialized input data
from azure-quantum-python.
Related Issues (20)
- "shots is not a known attribute of class JobDetails and will be ignored" when running VQE HOT 2
- estimate_cost() raises exception " 'NoneType' object is not iterable "
- uploading a StreamingProblem with initial configuration has incorrect formatting causing jobs to fail
- environment.yml does not have azure-quantum package in it HOT 1
- endianness of classical registers
- Azure-quantum authentication is near to impossible with EnvironmentCredential HOT 2
- shouldn't remove the register separators from the histogram keys HOT 9
- Number of qubits in Quantinuum Qiskit targets is incorrect HOT 1
- Tests for 1Qbit and Toshiba should use marks HOT 1
- Async tests taking 40 mins during live integration HOT 1
- Submitting QIR jobs ignores number of shots parameter
- Support `azure-quantum[qiskit]` installation on macOS M1 HOT 3
- Qiskit job result missing attributes cause wrong exception when job fails in VQE
- Time limit error for Rigetti Backend HOT 3
- Dependency conflict of pyquil-for-azure-quantum and azure-quantum
- Support azure-quantum[qiskit] installation on macOS M2
- notebook=7.0.0 has a change that broke the build HOT 1
- Tests got broken (with the release of Qiskit Terra 0.25.0?) HOT 1
- job.get_results fail with expired token HOT 1
- PR CI Build from a Fork fails when attempting to add build tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-quantum-python.