-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: Make Braket.jl an optional dependency with package extension (#…
…36) * change: Remove Braket.jl dependency * change: More tests * fix: More cleanup * fix: lock GIL appropriately for multiple Python specs * fix: No more QBP hang * fix: Working with Python multithreading * test docs in runtests, use GIL lock * fix: Remove extranous verify * fix: Make reset a no-op, close #37
- Loading branch information
1 parent
83850ed
commit 89be354
Showing
55 changed files
with
3,910 additions
and
2,155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,65 @@ | ||
name = "BraketSimulator" | ||
uuid = "76d27892-9a0b-406c-98e4-7c178e9b3dff" | ||
authors = ["Katharine Hyatt <[email protected]> and contributors"] | ||
version = "0.0.1" | ||
version = "0.0.2" | ||
|
||
[deps] | ||
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" | ||
Automa = "67c07d97-cdcb-5c2c-af73-a7f9c32a568b" | ||
Braket = "19504a0f-b47d-4348-9127-acc6cc69ef67" | ||
Combinatorics = "861a8166-3701-5b0c-9a16-15d98fcdc6aa" | ||
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" | ||
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" | ||
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" | ||
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240" | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d" | ||
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" | ||
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" | ||
StructTypes = "856f2bd8-1eba-4b0a-8007-ebc267875bd4" | ||
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" | ||
|
||
[weakdeps] | ||
Braket = "19504a0f-b47d-4348-9127-acc6cc69ef67" | ||
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" | ||
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d" | ||
|
||
[extensions] | ||
BraketSimulatorPythonExt = "PythonCall" | ||
BraketSimulatorBraketExt = "Braket" | ||
BraketSimulatorPythonExt = ["JSON3", "PythonCall"] | ||
|
||
[compat] | ||
AbstractTrees = "=0.4.5" | ||
Aqua = "=0.8" | ||
Automa = "=1.0.3" | ||
Braket = "=0.9.1" | ||
Automa = "=1.0.4" | ||
Braket = "=0.9.4" | ||
Combinatorics = "=1.0.2" | ||
DataStructures = "=0.18.20" | ||
Dates = "1.6" | ||
Documenter = "=1.5.0" | ||
InteractiveUtils = "1.6" | ||
JSON3 = "=1.14.0" | ||
LinearAlgebra = "1.6" | ||
Logging = "1.6" | ||
Pkg = "1.6" | ||
OrderedCollections = "=1.6.3" | ||
PrecompileTools = "=1.2.1" | ||
PythonCall = "=0.9.20" | ||
PythonCall = "=0.9.22" | ||
Random = "1.6" | ||
StaticArrays = "1.9" | ||
StatsBase = "0.34" | ||
StructTypes = "=1.10.0" | ||
Test = "1.6" | ||
UUIDs = "1.6" | ||
julia = "1.9" | ||
|
||
[extras] | ||
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" | ||
Braket = "19504a0f-b47d-4348-9127-acc6cc69ef67" | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" | ||
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" | ||
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Aqua", "Test", "Logging", "PythonCall"] | ||
test = ["Aqua", "Braket", "JSON3", "Test", "Logging", "PythonCall"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[deps] | ||
Braket = "19504a0f-b47d-4348-9127-acc6cc69ef67" | ||
BraketSimulator = "76d27892-9a0b-406c-98e4-7c178e9b3dff" | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
```@meta | ||
CurrentModule = BraketSimulator | ||
``` | ||
|
||
# Circuits | ||
|
||
Circuits are made up of *instructions* (operations to apply to the qubits -- [gates](gates.md) and [noises](noises.md)) and *result types* ([results](results.md)). | ||
OpenQASM3 programs are parsed to circuits which are then run on the simulator. | ||
|
||
```@docs | ||
BraketSimulator.Circuit | ||
BraketSimulator.Operator | ||
BraketSimulator.QuantumOperator | ||
BraketSimulator.FreeParameter | ||
BraketSimulator.Measure | ||
BraketSimulator.Instruction | ||
BraketSimulator.QubitSet | ||
BraketSimulator.Qubit | ||
BraketSimulator.qubit_count | ||
BraketSimulator.qubits | ||
BraketSimulator.basis_rotation_instructions! | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
```@meta | ||
CurrentModule = BraketSimulator | ||
``` | ||
|
||
# Gates | ||
|
||
`BraketSimulators.jl` provides many pre-implemented gates which can be used to build up circuits. For gates with angle parameters, you can supply `Irrational`s like `π` as arguments. | ||
|
||
```@docs | ||
BraketSimulator.Gate | ||
BraketSimulator.AngledGate | ||
BraketSimulator.I | ||
BraketSimulator.X | ||
BraketSimulator.Y | ||
BraketSimulator.Z | ||
BraketSimulator.H | ||
BraketSimulator.Rx | ||
BraketSimulator.Ry | ||
BraketSimulator.Rz | ||
BraketSimulator.V | ||
BraketSimulator.Vi | ||
BraketSimulator.T | ||
BraketSimulator.Ti | ||
BraketSimulator.S | ||
BraketSimulator.Si | ||
BraketSimulator.U | ||
BraketSimulator.Unitary | ||
BraketSimulator.PhaseShift | ||
BraketSimulator.MultiQubitPhaseShift | ||
BraketSimulator.PRx | ||
BraketSimulator.GPi | ||
BraketSimulator.GPi2 | ||
BraketSimulator.XX | ||
BraketSimulator.XY | ||
BraketSimulator.YY | ||
BraketSimulator.ZZ | ||
BraketSimulator.ECR | ||
BraketSimulator.MS | ||
BraketSimulator.CPhaseShift | ||
BraketSimulator.CPhaseShift00 | ||
BraketSimulator.CPhaseShift01 | ||
BraketSimulator.CPhaseShift10 | ||
BraketSimulator.CNot | ||
BraketSimulator.CY | ||
BraketSimulator.CZ | ||
BraketSimulator.CV | ||
BraketSimulator.Swap | ||
BraketSimulator.PSwap | ||
BraketSimulator.ISwap | ||
BraketSimulator.CCNot | ||
BraketSimulator.CSwap | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
```@meta | ||
CurrentModule = BraketSimulator | ||
``` | ||
|
||
# Noises | ||
|
||
`BraketSimulators.jl` provides many pre-implemented noise channels which can be applied to circuits. | ||
Noisy circuits can be simulated used the density matrix simulator. | ||
|
||
```@docs | ||
BraketSimulator.Noise | ||
BraketSimulator.Kraus | ||
BraketSimulator.BitFlip | ||
BraketSimulator.PhaseFlip | ||
BraketSimulator.PauliChannel | ||
BraketSimulator.TwoQubitPauliChannel | ||
BraketSimulator.MultiQubitPauliChannel | ||
BraketSimulator.Depolarizing | ||
BraketSimulator.PhaseDamping | ||
BraketSimulator.AmplitudeDamping | ||
BraketSimulator.GeneralizedAmplitudeDamping | ||
BraketSimulator.TwoQubitDepolarizing | ||
BraketSimulator.TwoQubitDephasing | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Observables | ||
|
||
```@docs | ||
BraketSimulator.Observables.Observable | ||
BraketSimulator.Observables.X | ||
BraketSimulator.Observables.Y | ||
BraketSimulator.Observables.Z | ||
BraketSimulator.Observables.H | ||
BraketSimulator.Observables.I | ||
BraketSimulator.Observables.TensorProduct | ||
BraketSimulator.Observables.HermitianObservable | ||
BraketSimulator.Observables.Sum | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Results | ||
|
||
|
||
```@docs | ||
BraketSimulator.Result | ||
BraketSimulator.AdjointGradient | ||
BraketSimulator.Expectation | ||
BraketSimulator.Variance | ||
BraketSimulator.Sample | ||
BraketSimulator.Amplitude | ||
BraketSimulator.Probability | ||
BraketSimulator.DensityMatrix | ||
BraketSimulator.StateVector | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
89be354
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
89be354
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/113421
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: