Skip to content

Commit

Permalink
change: Use new parametrization scheme for gates (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt-aws authored Jul 31, 2023
1 parent e5d46af commit 01a7290
Show file tree
Hide file tree
Showing 14 changed files with 286 additions and 532 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: "Set up Julia"
uses: julia-actions/setup-julia@v1
with:
version: 1.8
version: 1.9
arch: ${{ matrix.arch }}
- uses: julia-actions/julia-buildpkg@latest
- run: |
Expand Down
2 changes: 1 addition & 1 deletion PyBraket/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Aqua = "=0.6"
Braket = "=0.7.5"
CondaPkg = "=0.2.18"
DataStructures = "=0.18.14"
PythonCall = "=0.9.12"
PythonCall = "=0.9.14"
StructTypes = "=1.10.0"
julia = "1.6"

Expand Down
1 change: 1 addition & 0 deletions PyBraket/src/PyBraket.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module PyBraket
args = map(fns) do fn
val = getproperty(x, fn)
isnothing(val) && return fn=>pybuiltins.None
typeof(val) <: NTuple{1} && return fn=>Py(val[1])
typeof(val) <: Vector{<:Number} && return fn=>pylist(Py(val))
typeof(val) == Vector{String} && return fn=>pylist(pystr.(val))
typeof(val) == Vector{Braket.IR.PhysicalField} && return fn=>pylist(Py.(val))
Expand Down
Loading

0 comments on commit 01a7290

Please sign in to comment.