Skip to main content

FeynmS - Quantum Laboratory

image

FeynmS is a Python library for simulation and experimentation with quantum computing. It provides tools for creating and manipulating quantum circuits, implementing quantum algorithms, and visualizing results.

Installation

You can install FeynmS with pip:

pip install FeynmS

Features

  • Quantum Circuits: Create and manipulate quantum circuits with ease.
  • Quantum Gates: Utilize a variety of standard and custom quantum gates.
  • Quantum Algorithms: Implement algorithms such as Grover's search and Quantum Fourier Transform.
  • Quantum Teleportation: Simulate quantum teleportation protocols.
  • Visualization: Plot and visualize quantum circuits.

Usage

Creating a Quantum Circuit

from FeynmS.core.circuit import QuantumCircuit

# Create a quantum circuit with 3 qubits and 2 classical bits
circuit = QuantumCircuit(3, 2)

# Add gates to the circuit
circuit.h(0)
circuit.cx(0, 1)
circuit.measure(0, 0)
circuit.measure(1, 1)

# Execute the circuit
results = circuit.execute(shots=1024)
print(results)

Implementing Grover's Algorithm

from FeynmS.algorithms.grover import GroverSearch

# Define the number of qubits and the marked states
num_qubits = 3
marked_states = ['101']

# Create a GroverSearch object
grover = GroverSearch(num_qubits, marked_states)

# Run the algorithm
circuit = grover.run()
print(circuit)

Quantum Teleportation

from FeynmS.algorithms.teleportation import Teleportation

# Define the state to be teleported
state_to_teleport = [1/np.sqrt(2), 1/np.sqrt(2)]

# Create a Teleportation object
teleportation = Teleportation(state_to_teleport)

# Run the teleportation protocol
circuit = teleportation.run()
print(circuit)

Documentation

Explore the full documentation at https://feynms.readthedocs.io/.

Contributing

Contributions are welcome!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for FeynmS 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FeynmS 0.1.5
File Size Uploaded Provenance Actions
feynms-0.1.5.tar.gz 16.7 kB Without provenance Details for feynms-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for FeynmS 0.1.5
File Interpreter ABI Platform Actions
feynms-0.1.5-py3-none-any.whl Python 3 none any Details for feynms-0.1.5-py3-none-any.whl

Total release size: 36.5 kB

Release files / feynms-0.1.5.tar.gz

Download URL feynms-0.1.5.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b045d9165c89e967e996ef63b243fc72d518b3d093c5e331425821377f92c779
BLAKE2b-256 checksum
How to use checksums
ed95cb0c0de5dd7dd03776284baa68eea66eb01ccef05e176e54a72c8d6f4490
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / feynms-0.1.5-py3-none-any.whl

Download URL feynms-0.1.5-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08c10a21550983d46c6b15dea9d0c4d1694cc620587e1837182b76749032d38d
BLAKE2b-256 checksum
How to use checksums
82136b210515801b338b704a34123b93b1f8b663ca5fe80b38cccb2520e5e834
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for FeynmS 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page