No project description provided
Project description
Example
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()
License
The AcQuantumConnector is free and open source, released under the Apache License, Version 2.0.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
acquantum-connector-0.0.5.tar.gz
(10.3 kB
view hashes)
Built Distribution
Close
Hashes for acquantum-connector-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed842f24fec03f504293f225dae84165586a772620abf877ca706399eaafe9a0 |
|
MD5 | 5d6390d0f29b9ee7ecddee353c0c7814 |
|
BLAKE2b-256 | 93ff659f68b2f33a797a33cb2936e55792ac02bf089dfc59b4c43aaa569a6e20 |
Close
Hashes for acquantum_connector-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4af2005b898bfbf808b8b72ba8be511b4c784375a332e8c335b6b0aea0ff1e33 |
|
MD5 | 8a57c4d7745bba81e9d127da18bfc773 |
|
BLAKE2b-256 | a306c268db6302212e0c987cd92bf2eb0f9d615bdbb7fe607ea2afc841757384 |