Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Simple Quantum Algorithms Sample

Compare
Choose a tag to compare
@VSC-Service-Account VSC-Service-Account released this 09 Dec 19:12
· 260 commits to master since this release
Add python examples (#261)

* started writing python examples

* Most of the Algorithms samples are complete

* error-correction samples complete

* Completed integer factorization

I also changed the default to 10 because 100 is alot.

* Complete all of the python examples in algorithms.

The following examples completed:
 * Database Search
 * Oracle Synthesis
 * Reversible Logic Synthesis
 * Order Finding

* Completed simulations and simple algorithms

* Complete the samples for the numerics folder

* fix quantum oracle probability output

* Clean up the code and add useful comments.

* Added spacing and helpful comments.

* Added helpful comments and removed unused imports.

* Added helpful comments and cmd args to simulation.

* Added helpful comments and moved code to a main function.

* Create basic AnalyzeHamiltonian python sample

* start to the chemistry samples

* removed unfinished chemistry samples

* Changes made:

 * Converted everything to pep8 with a little help from
 [autopep8](https://github.com/hhatto/autopep8).
 * Add `try/except` in `integer-factorization/host.py`.
 * Add `if __name__ == "__main__"` in `oracle-synthesis/host.py`.
 * Use `%` in `f-string` in `order_finding.py`.
 * Added citation in `order_finding.py`.

* Add MIT license reminder to each source file.

* Fixes:

* corrected more style issues
* renamed some variables to be more clear and concise
* corrected the import order for numerics
* removed unused imports