File tree Expand file tree Collapse file tree 5 files changed +3
-85
lines changed Expand file tree Collapse file tree 5 files changed +3
-85
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# QuAlgorithmZoo
22
3- [ ![ Build Status] ( https://travis-ci.org/QuantumBFS/QuAlgorithmZoo.jl.svg?branch=master )] ( https://travis-ci.org/QuantumBFS/QuAlgorithmZoo.jl )
4- [ ![ Build status] ( https://ci.appveyor.com/api/projects/status/wdbroxclvf1nhsen/branch/master?svg=true )] ( https://ci.appveyor.com/project/Roger-luo/qualgorithmzoo-jl/branch/master )
5- [ ![ ] ( https://img.shields.io/badge/docs-stable-blue.svg )] ( https://quantumbfs.github.io/QuAlgorithmZoo.jl/stable/ )
6- [ ![ ] ( https://img.shields.io/badge/docs-latest-blue.svg )] ( https://quantumbfs.github.io/QuAlgorithmZoo.jl/latest/ )
7-
8- A curated implementation of quantum algorithms with [ Yao.jl] ( https://github.com/QuantumBFS/Yao.jl )
9-
10- * Note* : part of functionalities has been moved to [ YaoExtensions] ( https://github.com/QuantumBFS/YaoExtensions.jl ) .
3+ A curated implementation of quantum algorithms with [ Yao.jl] ( https://github.com/QuantumBFS/Yao.jl ) @0 .6
114
125## Installation
136
147QuAlgorithmZoo.jl is not registered yet, please use the following command:
158
169``` julia
17- pkg> add https: // github. com/ QuantumBFS/ QuAlgorithmZoo. jl. git
10+ pkg> dev https: // github. com/ QuantumBFS/ QuAlgorithmZoo. jl. git
1811```
1912
20- Disclaimer: ** this package is still under development and needs further polish. **
13+ Then open directory ' ~ /.julia/dev/QuAlgorithmZoo/examples' to find algorithms.
2114
2215## Contents
2316
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,13 +10,6 @@ function hydrogen_hamiltonian()
1010 0.011280 * Z1* Z2 + 0.397936 * Z1 + 0.397936 * Z2 + 0.180931 * X1* X2
1111end
1212
13- function get_gradient (circ, hamiltonian)
14- ψ = zero_state (2 ) |> circ
15- dψ = copy (ψ) |> hamiltonian
16- backward! ((copy (ψ), dψ), circ)
17- gradient (circ)
18- end
19-
2013using Flux: Optimise
2114function train! (circ, hamiltonian; optimizer, niter:: Int = 100 )
2215 params = parameters (circ)
You can’t perform that action at this time.
0 commit comments