Skip to content

Commit ebcb99e

Browse files
committed
Merge branch 'master' of github.com:QuantumBFS/QuAlgorithmZoo.jl
2 parents ef1b0f1 + 2ce1fd5 commit ebcb99e

File tree

5 files changed

+3
-85
lines changed

5 files changed

+3
-85
lines changed

.codecov.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
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

147
QuAlgorithmZoo.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

appveyor.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

examples/VQE/H2.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ function hydrogen_hamiltonian()
1010
0.011280*Z1*Z2 + 0.397936*Z1 + 0.397936*Z2 + 0.180931*X1*X2
1111
end
1212

13-
function get_gradient(circ, hamiltonian)
14-
ψ = zero_state(2) |> circ
15-
= copy(ψ) |> hamiltonian
16-
backward!((copy(ψ), dψ), circ)
17-
gradient(circ)
18-
end
19-
2013
using Flux: Optimise
2114
function train!(circ, hamiltonian; optimizer, niter::Int=100)
2215
params = parameters(circ)

0 commit comments

Comments
 (0)