Skip to main content

A Python library for quantum computing simulation.

Project description

FeynmS - Quantum Laboratory

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

For more detailed information and examples, please refer to the official documentation.

Contributing

Contributions are welcome!

License

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

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

feynms-0.1.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

feynms-0.1.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file feynms-0.1.1.tar.gz.

File metadata

  • Download URL: feynms-0.1.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for feynms-0.1.1.tar.gz
Algorithm Hash digest
SHA256 54cf8ef9af93fdb926409b3891f9a89530efab82931d633f2eee9fdecd8c7eb7
MD5 be4a838b00159d043b950583f25c7c8c
BLAKE2b-256 5af4216a99f0ba676b46a9e5f339e714400e0ecd11d344fdb020989b5493902e

See more details on using hashes here.

File details

Details for the file feynms-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: feynms-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for feynms-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fa97351bbd03fd1d80d2ff60143616e945cdc7cc41f7e32fe15672f25091976
MD5 5ac2db973bac398860cd9e763b8d1fad
BLAKE2b-256 64f10b221fbbd3ce803d3336be9bd6f1806451cf8327fe6b9eae272154f71573

See more details on using hashes here.

Supported by

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