devqubit adapter for Cirq
Project description
devqubit-cirq
Google Cirq adapter for devqubit. Automatically captures circuits and results from Cirq simulators.
Installation
pip install devqubit[cirq]
Usage
import cirq
from devqubit import track
q0, q1 = cirq.LineQubit.range(2)
circuit = cirq.Circuit([
cirq.H(q0),
cirq.CNOT(q0, q1),
cirq.measure(q0, q1, key="result"),
])
with track(project="cirq-exp") as run:
simulator = run.wrap(cirq.Simulator())
result = simulator.run(circuit, repetitions=1000)
What's Captured
- Circuits — Cirq JSON, OpenQASM 3
- Results — Measurement counts, histograms
- Simulator info — Simulator type, configuration
License
Apache 2.0
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
devqubit_cirq-0.1.0.tar.gz
(30.8 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
File details
Details for the file devqubit_cirq-0.1.0.tar.gz.
File metadata
- Download URL: devqubit_cirq-0.1.0.tar.gz
- Upload date:
- Size: 30.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52671fd76da73a58b5347d878f65d3a507a8e75e7d6d675e1c0a4ccaaa8de1d5
|
|
| MD5 |
4afb27681beee70be4dab842d0ecbfb2
|
|
| BLAKE2b-256 |
038387d84f77add2290cb1800f3ab7457476a7f9ba116bf6a524e1c99dcacb1d
|
File details
Details for the file devqubit_cirq-0.1.0-py3-none-any.whl.
File metadata
- Download URL: devqubit_cirq-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
838f0a44e41f10d74bfc7c3f6822047aea0d5ec9a4294f3a65674a5ba42c09dc
|
|
| MD5 |
df3deb080fdd34be42f77e5fd0805b10
|
|
| BLAKE2b-256 |
abbf6dc82c8dff8096144e185983ef84d62b1069404cb4c68ab95e8731b348a5
|