Skip to main content

Creative coding library for artistic expression of quantum behavior.

Project description

Quantum-Art-Library

This is a creative coding library for artistic expression of quantum behavior.

Requirement

  • NumPy
  • Matplotlib
  • PyOpenGL
  • glfw
  • cv2
  • PIL
  • tqdm
  • os
  • platform
  • CuPy (Not required.)

Installation

pip install QuantumArtLibrary

Usage

There are two ways to use it. One is to output the quantum simulation results as an array. The other is the output of images and videos.

Quantum Simulation

simulation(image="sample.png", n=400, step=300, p=[0, -15], v=[0, 80], method="split-step", white=1, range=[0.1, 0.9])

Not all arguments are required. The above is the default value other than image. If no image is specified, it simulates a double slit experiment.

image: Image to input.
n: Number of grid points.
step: Number of frames to output.
p: Initial position of the quantum.
v: Quantum speed and direction.
method: Simulation method. When simulating on a GPU using CuPy, you can use the following methods: split-step-cupy
white: Set 1 for images based on white and 0 for images based on black.
range: Set the range to convert to grayscale.

Output of images and videos

drawing(simulation, vertex_shader="shader.vert", fragment_shader="shader.frag")

Take the output of the simulation function as an argument. Shaders are not required, but can be set.

vertet_shader: Set the vertex shader. Refer to shader.vert
fragment_shader: Set fragment shader. Refer to shader.frag

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

QuantumArtLibrary-1.0.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

QuantumArtLibrary-1.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file QuantumArtLibrary-1.0.0.tar.gz.

File metadata

  • Download URL: QuantumArtLibrary-1.0.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for QuantumArtLibrary-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a87817eadf87d6ce54b580f43a20fee0b1beba57f6e8e8521d4f9ac9b7de1c52
MD5 95d4738e7db76f9c297ac7876e27e01b
BLAKE2b-256 d74cb9d477d7af14f291ea3f96db15cfc38bed89c9f26202abcefb0d85058483

See more details on using hashes here.

File details

Details for the file QuantumArtLibrary-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for QuantumArtLibrary-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc9c293fc283596cafdf53961df854a95a5eddce9516983b44af9a79818e71fe
MD5 ab47996d0e2c3188d5f07ee1ab375b31
BLAKE2b-256 0d8aa1f5de0b2f5bc40553140b3339d29741dae94bbff38e6a1b62f9541984d4

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