Skip to content

lucainnocenti/quantum-gate-learning-1803.07119-Mathematica-code

Repository files navigation

Content

Mathematica code used to reproduce the analytical results presented in "Supervised learning of time-independent Hamiltonians for gate design" (arXiv:1803.07119).

Use

The QM package is required to use some of the functionality used here.

You can use most functionality in the packages importing the files as standalone directly from GitHub. For example, to import QPauliAlgebra.m in your notebook without installing it, use

Get["https://raw.githubusercontent.com/lucainnocenti/quantum-gate-learning-1803.07119-Mathematica-code/master/QPauliAlgebra.m"]

Packages

  • QPauliAlgebra.m: Mathematica package defining the core functionality to handle symbolic pauli algebras. Here is where functions such as QPauliExpr are defined. The notebooks QPauliAlgebraTests.nb and QPauliAlgebraExamples.nb contain unit tests and usage examples for some of these functions, respectively.
  • GateLearning.m: Mathematica package defining the functions to decompose matrices in the Pauli representation, extract generators as pauli expressions etc. It also contains functions to apply the three conditions shown in the paper. The notebook GateLearningTests.nb contains some unit tests checking core functionalities of this package.

Notebooks

  • FredkinConditions.nb: Contains the code used to obtain the analytical expressions for the Fredkin generator with only diagonal pairwise interactions.
  • TestToffoliAndCCZ.nb: Contains some (failed) attempts at finding analytically generators for Toffoli and CCZ with only diagonal interactions. Some of the code here may not be working properly now due to updates to the code in the supporting packages.

About

Mathematica code used to reproduce analytical results presented in https://arxiv.org/abs/1803.07119

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published