Commit dd3df78
Fix the format of CliffordGate repr. (#7046)
* fix the format of CliffordGate repr.
* Add unit tests for CliffordGate.__repr__()
* Check the full string of repr without calling _str_full_.
* remove test cases
* Strip trailing blanks in the expected repr(gate) string
---------
Co-authored-by: Pavol Juhas <juhas@google.com>1 parent bc9fc97 commit dd3df78
2 files changed
Lines changed: 40 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
926 | 949 | | |
| 950 | + | |
927 | 951 | | |
928 | 952 | | |
929 | 953 | | |
| |||
950 | 974 | | |
951 | 975 | | |
952 | 976 | | |
953 | | - | |
| 977 | + | |
954 | 978 | | |
955 | 979 | | |
956 | 980 | | |
957 | 981 | | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
0 commit comments