Skip to content

Commit

Permalink
Merge pull request #1 from yosefrajwulf/yosefrajwulf-patch-1
Browse files Browse the repository at this point in the history
Update Quantum.jl
  • Loading branch information
yosefrajwulf authored Jul 31, 2017
2 parents 2297425 + 8ed0e4b commit ddf28ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Quantum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ immutable QFactor <: QObj
end
end
# Simplified constructor that auto-creates identity operator
QFactor(dim::Int, name::QName) = QFactor(dim, name, QOps("i" => speye(dim)))
QFactor(dim::Int, name::QName) = QFactor(dim, name, QOps("i" => speye(QComp, dim)))

# Helper functions
size(s :: QFactor) = s.dim
Expand Down

0 comments on commit ddf28ad

Please sign in to comment.