Skip to content

Commit

Permalink
make the error message a lazy construction
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov authored Sep 14, 2024
1 parent 2ece915 commit f67668a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QuantumClifford.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function Tableau(phases::AbstractVector{UInt8}, xs::AbstractMatrix{Bool}, zs::Ab
r_xs = size(xs, 1)
r_zs = size(zs, 1)
if length(phases) != r_xs || r_xs != r_zs
throw(DimensionMismatch("The length of phases ($(length(phases))), rows of xs ($r_xs), rows of zs ($r_zs) must all be equal."))
throw(DimensionMismatch(lazy"The length of phases ($(length(phases))), rows of xs ($r_xs), rows of zs ($r_zs) must all be equal."))
end
Tableau(
phases,size(xs, 2),
Expand Down

0 comments on commit f67668a

Please sign in to comment.