Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Device Documentation Properties #25

Merged
merged 6 commits into from
Jul 30, 2020
Merged

Adding Device Documentation Properties #25

merged 6 commits into from
Jul 30, 2020

Conversation

kalhanreddy
Copy link
Contributor

@kalhanreddy kalhanreddy commented Jul 30, 2020

build_files.tar.gz
Issue
We need show certain device specific properties to the users, those are listed below. This is required to show the details in console.

supportedRegions
deviceCost
deviceMetadata
deviceLocation
summary
externalDocumentation

Tests: Added tests to the new class and updated the old ones to pass.

src/braket/device_schema/device_capabilities.py Outdated Show resolved Hide resolved
src/braket/device_schema/device_capabilities.py Outdated Show resolved Hide resolved
src/braket/device_schema/device_capabilities.py Outdated Show resolved Hide resolved
src/braket/device_schema/device_capabilities.py Outdated Show resolved Hide resolved
src/braket/device_schema/device_level_properties.py Outdated Show resolved Hide resolved
src/braket/device_schema/jaqcd_device_action_properties.py Outdated Show resolved Hide resolved
src/braket/device_schema/device_capabilities.py Outdated Show resolved Hide resolved
This class provides the details on the cost of a device.

Attributes:
price: Price of the device in terms of US $
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"US dollars"


class DeviceDocumentation(BaseModel):
"""
This class provides the device metadata like image, summary of it and external documentation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"device documentation"

Attributes:
imageUrl: url for the image of the device
summary: brief description on the device
externalDocumentationLink: link to provide any useful information to the users.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

externalDocumentationUrl

@kalhanreddy kalhanreddy changed the title Device Adding Device Documentation Properties Jul 30, 2020
... "supportedResultTypes": [{
... "name": "resultType1",
... "observables": ["observable1"],
... "minShots": 2,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"minShots": 0

@kalhanreddy kalhanreddy merged commit 353f173 into master Jul 30, 2020
@kalhanreddy kalhanreddy deleted the device branch July 30, 2020 20:49
MattCordoba added a commit that referenced this pull request Mar 18, 2022
Make provider properties specs to keep consistent with similar properties for other QHPs. Make OneQubit gate number an integer instead of a float
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants