Skip to content

Commit

Permalink
Update src/validation.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Cody Wang <speller26@gmail.com>
  • Loading branch information
kshyatt-aws and speller26 authored Jun 30, 2024
1 parent b616366 commit abe724f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function _validate_shots_and_ir_results(shots::Int, results, qubit_count::Int)
elseif shots > 0 && !isnothing(results) && !isempty(results)
for rt in results
rt.type ["statevector", "amplitude", "densitymatrix"] && throw(ValidationError(
"statevector, amplitude and densitymatrix result types not available when shots>0",
"statevector, amplitude and densitymatrix result types are only available when shots==0",
"ValueError"
))
end
Expand Down

0 comments on commit abe724f

Please sign in to comment.