-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix more issues in preparation for v1.10 (#383)
- Add fuzz testing of all the read/write shot formats and options - Add ability to pass pathlib.Path type to read/write shot methods - Fix a bug in the ptb64 writing logic related to non-multiple-of-64 shot sizes - Deprecate `bit_pack` argument name in favor of `bit_packed` - Fix false positive "writingto zero sized region" warning from GCC from std::vector::insert - Add a dev script for regenerating the texture data as C++ without exceeding allowed literal sizes - Add missing cp311-macosx_x86_64 wheel Fixes #382
- Loading branch information
Showing
31 changed files
with
349 additions
and
1,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
######################################################################### | ||
# Transforms binary data into an array of string literals containing the | ||
# base 64 data encoding the data. The strings are split into an array | ||
# to avoid exceeding C++'s maximum string literal length. | ||
######################################################################### | ||
|
||
echo '#include "stim/diagram/gate_data_3d_texture_data.h"' | ||
echo '' | ||
echo 'std::string stim_draw_internal::make_gate_3d_texture_data_uri() {' | ||
echo ' std::string result;' | ||
echo ' result.append("data:image/png;base64,");' | ||
base64 -w 1024 | sed 's/.*/ result.append("\0");/g' | ||
echo ' return result;' | ||
echo '}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.