A simple Python library to simulate and execute EWL quantum circuits on IBM Q.
Project description
EWL
A simple Python library to simulate and execute EWL quantum circuits on IBM Q.
Installation
pip install ewl
Usage
from ewl import *
psi = (ket('00') + i * ket('11')) / sqrt(2) # initial state
alice = U(theta=pi/2, alpha=pi/2, beta=0) # quantum strategy
bob = U(theta=0, alpha=0, beta=0) # classical strategy (C)
ewl = ExtendedEWL(psi, [alice, bob])
ewl.draw()
ewl.draw_transpiled(backend_name='ibmq_athens', optimization_level=3)
ewl.simulate()
ewl.run(backend_name='ibmq_athens', optimization_level=3)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ewl-0.2.0.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ewl-0.2.0-py3-none-any.whl
(4.3 kB
view details)
File details
Details for the file ewl-0.2.0.tar.gz.
File metadata
- Download URL: ewl-0.2.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
119356c23785e75a498b7c5a5bbf7870b5b4f54dd2ca4befc7b430ed2fbaa7bd
|
|
| MD5 |
a5e4f7aeb8e0095db25f3191fd3dde4c
|
|
| BLAKE2b-256 |
74a4bedad0dca67a0a1d7a27cf5fd9e3661e2bd4017f0f0ce6728cddc8592225
|
File details
Details for the file ewl-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ewl-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38618d67c6053068fba62b63f948b49145633c8459129dd76677f6edd6e7f000
|
|
| MD5 |
3959368f987848f1e8f3efc8c69cc27c
|
|
| BLAKE2b-256 |
2abb6160b18e1f83e9a427a31bb4b190d283a8efdff7150f9472fcd64d3e1125
|