Skip to main content

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

qiskit_state_evolution_recorder-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file qiskit_state_evolution_recorder-0.1.0.tar.gz.

File metadata

File hashes

Hashes for qiskit_state_evolution_recorder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a9c8acfbb4d39c3b9f0a16e795615a6638e372dd3e5d82897fdce7b5ede70de1
MD5 d0eba76365ed0a456961bee80cdd10ac
BLAKE2b-256 4ad0125f02f1481d01f1e60cd763555cdf4ce108bf910ff8503df06783b9f4ed

See more details on using hashes here.

File details

Details for the file qiskit_state_evolution_recorder-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qiskit_state_evolution_recorder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7185c2ba39e9a713441b581182650cd4697d94254f07b57dd41c5b166f073c98
MD5 a0d5332029149dde1f2fc33db97dc388
BLAKE2b-256 e66c9b046cf94be5310a5da403ee1742f189b67f647c6675c5b1199a1251c572

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page