https://github.com/ryan-bendelson/2024-summer-research
This is Python code that I worked with during my summer 2024 research project involving quantum physics.
https://github.com/ryan-bendelson/2024-summer-research
density-matrices kronecker-product linear-algebra miniconda3 numpy numpy-arrays partial-trace python quantum-information
Last synced: 3 months ago
JSON representation
This is Python code that I worked with during my summer 2024 research project involving quantum physics.
- Host: GitHub
- URL: https://github.com/ryan-bendelson/2024-summer-research
- Owner: Ryan-Bendelson
- Created: 2025-03-03T20:00:45.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-04T20:30:24.000Z (3 months ago)
- Last Synced: 2025-03-04T21:19:28.149Z (3 months ago)
- Topics: density-matrices, kronecker-product, linear-algebra, miniconda3, numpy, numpy-arrays, partial-trace, python, quantum-information
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is the code I worked on for my 2024 Summer Research project. The main feature I worked on is a function that takes in a Kronecker product density matrix and a specified qubit to return the partial trace of the density matrix over the specified qubit.
This function is based on a visual method I came up with that helped me to identify how to take the partial trace of a density matrix representing a composite quantum system. It works based on splitting the full sized matrix into smaller submatrices that can be evaluated individually. The results of evaluating each submatrix are placed into appropriate spots in a larger result matrix for the full partial trace.