Simple module allowing to record animations to trace changes in qubit states for arbitrary quantum circuits.
Project description
qiskit-state-evolution-recorder
Simple module allowing to record animations to trace changes in qubit states for arbitrary quantum circuits.
Usage
from qiskit.circuit import QuantumCircuit
from qiskit_state_evolution_recorder import StateEvolutionRecorder
qc = QuantumCircuit(4)
qc.h(range(4))
qc.cx(range(3), 3)
qc.h(range(4))
qc.measure_all()
recorder = StateEvolutionRecorder(qc, figsize=(12, 8), num_cols=4, style={'name': 'bw'})
recorder.evolve(120)
recorder.record("quantum_circuit.mp4", fps=30)
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
Built Distribution
File details
Details for the file qiskit_state_evolution_recorder-0.1.0.tar.gz
.
File metadata
- Download URL: qiskit_state_evolution_recorder-0.1.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9c8acfbb4d39c3b9f0a16e795615a6638e372dd3e5d82897fdce7b5ede70de1 |
|
MD5 | d0eba76365ed0a456961bee80cdd10ac |
|
BLAKE2b-256 | 4ad0125f02f1481d01f1e60cd763555cdf4ce108bf910ff8503df06783b9f4ed |
File details
Details for the file qiskit_state_evolution_recorder-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: qiskit_state_evolution_recorder-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7185c2ba39e9a713441b581182650cd4697d94254f07b57dd41c5b166f073c98 |
|
MD5 | a0d5332029149dde1f2fc33db97dc388 |
|
BLAKE2b-256 | e66c9b046cf94be5310a5da403ee1742f189b67f647c6675c5b1199a1251c572 |