Skip to content

Commit 92e455c

Browse files
committed
Tuples LazySum and docs.yml update
1 parent e124660 commit 92e455c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ jobs:
2323
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
2424
- name: Build and deploy
2525
env:
26-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
DOCUMENTER_KEY: ${{secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
2728
run: julia --project=docs/ docs/make.jl

src/should_upstream.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function QuantumOpticsBase.:+(a::LazyTensor{B1,B2},b::LazyTensor{B1,B2}) where {
44
end
55

66
function QuantumOpticsBase.:-(a::LazyTensor{B1,B2},b::LazyTensor{B1,B2}) where {B1,B2}
7-
LazySum([1,-1],[a,b])
7+
LazySum((1,-1),(a,b))
88
end
99

1010
function QuantumOpticsBase.:+(a::LazyTensor{B1,B2},b::Operator{B1,B2}) where {B1,B2}
@@ -35,7 +35,7 @@ end
3535
function QuantumOpticsBase.:(a::LazyTensor,b::Operator)
3636
if isequal(b,identityoperator(basis(b)))
3737
btotal = basis(a) basis(b)
38-
LazyTensor(btotal,btotal,[a.indices...],(a.operators...,),a.factor)
38+
LazyTensor(btotal,btotal,(a.indices...,),(a.operators...,),a.factor)
3939
else
4040
a LazyTensor(b.basis_l,b.basis_r,[1],(b,),1)
4141
end
@@ -44,7 +44,7 @@ end
4444
function QuantumOpticsBase.:(a::Operator,b::LazyTensor)
4545
if isequal(a,identityoperator(basis(a)))
4646
btotal = basis(a) basis(b)
47-
LazyTensor(btotal,btotal,[b.indices...].+1 ,(b.operators...,),b.factor)
47+
LazyTensor(btotal,btotal,(b.indices...,).+1 ,(b.operators...,),b.factor)
4848
else
4949
LazyTensor(a.basis_l,a.basis_r,[1],(a,),1) b
5050
end

0 commit comments

Comments
 (0)