Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
377 changes: 222 additions & 155 deletions Manifest.toml

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Einsum = "b7d42ee7-0b51-5a75-98ca-779d3107e4c0"
ExponentialAction = "e24c0720-ea99-47e8-929e-571b494574d3"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9"
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
Expand All @@ -34,7 +33,6 @@ Distributions = "0.25"
Einsum = "0.4"
ExponentialAction = "0.2"
ForwardDiff = "0.10"
IJulia = "1.25"
Interpolations = "0.15"
Ipopt = "1.6"
JLD2 = "0.5"
Expand Down
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# QuantumCollocation.jl

<div align="center"> <a href="https://github.com/kestrelquantum/Piccolo.jl">
<img src="assets/logo.svg" alt="logo" width="35%"/>
<img src="docs/src/assets/logo.svg" alt="logo" width="35%"/>
</a> </div>


Expand Down Expand Up @@ -41,12 +41,23 @@ using Pkg
Pkg.add(QuantumCollocation)
```

## Examples
## Example

### Single Qubit X-Gate
See the example script [examples/scripts/single_qubit_gate.jl](examples/scripts/single_qubit_gate.jl), which produces the following plot:
```Julia
using QuantumCollocation

T = 50
Δt = 0.2
system = QuantumSystem([PAULIS[:X], PAULIS[:Y]])

![Single Qubit X-Gate](images/T_100_Q_1000_iter_1000_00004_fidelity_0.9999999999994745.png)
# Hadamard Gate
prob = UnitarySmoothPulseProblem(system, GATES[:H], T, Δt)
solve!(prob, max_iter=100)

plot_unitary_populations(prob)
```
![Single Qubit X-Gate](docs/src/assets/x_gate_unitary_populations.svg)

## Quickstart developers guide

Expand Down
1 change: 0 additions & 1 deletion assets/logo.svg

This file was deleted.

Loading
Loading