Catalog PyPI
Back to packageRELEASE DETAILS

0.0.5

PyPI

acquantum-connector

AcQuantum Connector ################################### .. image:: https://img.shields.io/codacy/grade/707d09158742419a9379e9bce6c2510c.svg?style=for-the-badge :alt: Codacy Badge :target: https://app.codacy.com/app/sebboer/acquantum-connector?utm_source=github.com&utm_medium=referral&utm_content=sebboer/acquantum-connector&utm_campaign=Badge_Grade_Dashboard .. image:: https://img.shields.io/readthedocs/acquantum-connector.svg?style=for-the-badge :target: https://acquantum-connector.readthedocs.io/en/latest/?badge=latest :alt: Read the Docs .. image:: https://img.shields.io/travis/com/carstenblank/acquantum-connector.svg?style=for-the-badge :target: https://travis-ci.com/carstenblank/acquantu

Published27 Feb 2019
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.0.5 documentation
AcQuantum Connector
###################################

.. image:: https://img.shields.io/codacy/grade/707d09158742419a9379e9bce6c2510c.svg?style=for-the-badge
   :alt: Codacy Badge
   :target: https://app.codacy.com/app/sebboer/acquantum-connector?utm_source=github.com&utm_medium=referral&utm_content=sebboer/acquantum-connector&utm_campaign=Badge_Grade_Dashboard

.. image:: https://img.shields.io/readthedocs/acquantum-connector.svg?style=for-the-badge
    :target: https://acquantum-connector.readthedocs.io/en/latest/?badge=latest
    :alt: Read the Docs

.. image:: https://img.shields.io/travis/com/carstenblank/acquantum-connector.svg?style=for-the-badge
    :target: https://travis-ci.com/carstenblank/acquantum-connector
    :alt: Travis Build

.. image:: https://img.shields.io/pypi/v/acquantum-connector.svg?style=for-the-badge
    :alt: PyPI
    :target: https://pypi.org/project/acquantum-connector

.. image:: https://img.shields.io/pypi/pyversions/acquantum-connector.svg?style=for-the-badge
    :alt: PyPI - Python Version
    :target: https://pypi.org/project/acquantum-connector

.. example-start-inclusion-marker-do-not-remove

Example
=======

.. code-block:: python

    from acquantumconnector.connector.acquantumconnector import AcQuantumConnector
    from acquantumconnector.credentials.credentials import AcQuantumCredentials
    from acquantumconnector.model.backendtype import AcQuantumBackendType
    from acquantumconnector.model.gates import XGate, Measure

    api = AcQuantumConnector()

    api.create_session(AcQuantumCredentials('username', 'password'))

    # Create Experiment
    experiment_id = api.create_experiment(bit_width=4, experiment_type=AcQuantumBackendType.SIMULATE,
                                          experiment_name='Demo')
    print(experiment_id)

    # Update Experiment
    gates = [XGate(1, 1), Measure(2, 1)]
    api.update_experiment(experiment_id, gates)

    # Get Experiment
    exp_res = api.get_experiment(experiment_id)
    print(exp_res)

    # List Experiments
    exp_list = api.get_experiments()
    print(exp_list)

    # Run Experiment
    api.run_experiment(experiment_id, AcQuantumBackendType.SIMULATE, 2, 100)

    # Get Result
    api.get_result(experiment_id)

    # Download Result
    api.download_result(experiment_id)

    api.save_session()

.. example-end-inclusion-marker-do-not-remove

.. license-start-inclusion-marker-do-not-remove

License
=======

The AcQuantumConnector is **free** and **open source**, released under
the `Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>`_.

.. license-end-inclusion-marker-do-not-remove


Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
requests
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
requestsruntime

Distribution files

2 collected
acquantum_connector-0.0.5-py3-none-any.whl

bdist_wheel · 18 KB · Python py3

Source file
acquantum-connector-0.0.5.tar.gz

sdist · 10.08 KB · Python source

Source file

Repository

PENDING
carstenblank/acquantum-connector

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:24 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:41521b352bad4e281685eb682a8e378188996ca9581fe2c3d4e1b11ce25522ae

Other collected versions

View all collected versions →