Giter VIP home page Giter VIP logo

quantum_entropy's Introduction

Quantum Entropy

To run each python script, run: python file_name.py on the command line.

Classical Shannon functions

shannon.py

  • Contains Shannon definitions and its inequalities.
  • Has function that generates random probability distributions.
  • Contains definitions of all Shannon and non-Shannon inequalities.

separate_probs.py Separates joint probability distributions into marginal distributions (and smaller joint distributions). Works up to 4 random variables.

Von Neumann functions

entropy.py Contains Von Neumann definitions and quantum inequalities.

entangle.py

  • Contains definitions of Bell states and GHZ states
  • Has functions that check for entanglement in quantum states.

evolution.py

  • Functions of unitary evolution and unitary time evolution.
  • Functions of quantum noisy channels: bit-flip, phase-flip, bit-phase-flip and depolarising channels.
  • Has functions that check unitality, partial trace preservations and change of entropy of a quantum state when it passes through the quantum channels.

non_shannon_quantum.py Contains definitions of the non-Shannon inequalities.

partial_trace.py Contains function that computes partial trace for 2,3,4 and 5 qubit and qutrit systems.

generate_random_quantum.py

  • Has functions that generate unitary, hermitian and density matrices (pure and mixed states).
  • Different methods to generate mixed states.

Testing

run_classical_tests.py Runs Shannon and non-Shannon inequalities tests once. Uses pytest, so to run script, run pytest --verbose run_classical_tests.py on the command line.

quantum_tests.py Has functions to used for testing all the Von Neumann and non-Shannon inequalities.

extensive_testing.py Uses functions in quantum_tests.py to run tests all Von Neumann and non-Shannon inequalities. Running script runs goes through all inequalities and prints result in the command line. Uses similar syntax to pytest.

print_tests.py Runs tests below and prints to command line. Tests:

  • Number of entangled states in mixed states generated
  • All non-Shannon inequalities for the different generate functions, 100,000 times run.
  • Non-Shannon inequality fir GHZ states.

Other

graphs.py

  • Plots probability against average entropy difference (for 1000 states) for each quantum channel
  • Plots avg. difference with method of generation for Zhang-Yeung inequality

utils.py Useful additional functions

quantum_entropy's People

Contributors

adannaakwats avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.