QuLab 2.11.5__py3-none-any.whl → 2.11.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- qulab/version.py +1 -1
- qulab/visualization/plot_layout.py +7 -0
- {qulab-2.11.5.dist-info → qulab-2.11.6.dist-info}/METADATA +1 -1
- {qulab-2.11.5.dist-info → qulab-2.11.6.dist-info}/RECORD +8 -8
- {qulab-2.11.5.dist-info → qulab-2.11.6.dist-info}/WHEEL +0 -0
- {qulab-2.11.5.dist-info → qulab-2.11.6.dist-info}/entry_points.txt +0 -0
- {qulab-2.11.5.dist-info → qulab-2.11.6.dist-info}/licenses/LICENSE +0 -0
- {qulab-2.11.5.dist-info → qulab-2.11.6.dist-info}/top_level.txt +0 -0
qulab/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "2.11.
|
1
|
+
__version__ = "2.11.6"
|
@@ -118,6 +118,7 @@ def plot_range(ax,
|
|
118
118
|
color=None,
|
119
119
|
text_color='k',
|
120
120
|
bounder_color='k',
|
121
|
+
rotation=0,
|
121
122
|
lw=0.5,
|
122
123
|
fontsize=9):
|
123
124
|
x, y = path
|
@@ -138,6 +139,7 @@ def plot_range(ax,
|
|
138
139
|
text,
|
139
140
|
ha='center',
|
140
141
|
va='center',
|
142
|
+
rotation=rotation,
|
141
143
|
color=text_color,
|
142
144
|
fontsize=fontsize)
|
143
145
|
|
@@ -217,6 +219,7 @@ def draw(layout, ax=None, qubit_cbar=True, coupler_cbar=True, origin='upper'):
|
|
217
219
|
qubit.get('color', None),
|
218
220
|
lw=qubit.get('lw', 0.5),
|
219
221
|
fontsize=qubit.get('fontsize', 9),
|
222
|
+
rotation=qubit.get('rotation', 0),
|
220
223
|
text_color=qubit.get('text_color', 'k'),
|
221
224
|
bounder_color=qubit.get('bounder_color', 'k'))
|
222
225
|
|
@@ -232,6 +235,9 @@ def draw(layout, ax=None, qubit_cbar=True, coupler_cbar=True, origin='upper'):
|
|
232
235
|
width = coupler.get('width', 0.5)
|
233
236
|
lw = coupler.get('lw', 0.5)
|
234
237
|
|
238
|
+
rotation = 180 * np.arctan2(pos2[1] - pos1[1],
|
239
|
+
pos2[0] - pos1[0]) / np.pi
|
240
|
+
|
235
241
|
path = circle_link_path(pos1, pos2, r1, r2, width)
|
236
242
|
plot_range(ax,
|
237
243
|
path,
|
@@ -239,6 +245,7 @@ def draw(layout, ax=None, qubit_cbar=True, coupler_cbar=True, origin='upper'):
|
|
239
245
|
color=coupler.get('color', None),
|
240
246
|
lw=0,
|
241
247
|
fontsize=coupler.get('fontsize', 9),
|
248
|
+
rotation=coupler.get('rotation', rotation),
|
242
249
|
text_color=coupler.get('text_color', 'k'))
|
243
250
|
if lw > 0:
|
244
251
|
x, y = circle_link_path(pos1, pos2, r1, r2, width, n=2)
|
@@ -2,7 +2,7 @@ qulab/__init__.py,sha256=hmf6R3jiM5NtJY1mSptogYnH5DMTR2dTzlXykqLxQzg,2027
|
|
2
2
|
qulab/__main__.py,sha256=fjaRSL_uUjNIzBGNgjlGswb9TJ2VD5qnkZHW3hItrD4,68
|
3
3
|
qulab/typing.py,sha256=vg62sGqxuD9CI5677ejlzAmf2fVdAESZCQjAE_xSxPg,69
|
4
4
|
qulab/utils.py,sha256=w5oSw9Ypux6l0oB-MzlQvT40iX_rzQ5wXcwzr7CIVf8,4107
|
5
|
-
qulab/version.py,sha256=
|
5
|
+
qulab/version.py,sha256=Bx8wB0SH56T33xWJQ2wPqk64pcd9l8Qx4gqE_grdxI4,22
|
6
6
|
qulab/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
qulab/cli/commands.py,sha256=ywKmwbGNBCVASx8OsgrRttaLz9ogwY38ZdKj7I-tdJ4,813
|
8
8
|
qulab/cli/config.py,sha256=tZPSBLbf2x_Brb2UBuA1bsni8nC8WOPPGyWIi8m7j1I,5459
|
@@ -91,14 +91,14 @@ qulab/visualization/__init__.py,sha256=26cuHt3QIJXUb3VaMxlJx3IQTOUVJFKlYBZr7WMP5
|
|
91
91
|
qulab/visualization/__main__.py,sha256=9zKK3yZFy0leU40ou6BpRC1Fsetfc1gjjFzIZYIwP6Y,1639
|
92
92
|
qulab/visualization/_autoplot.py,sha256=31B7pn1pK19abpQDGYBU9a_27cDL87LBpx9vKqlcYAo,14165
|
93
93
|
qulab/visualization/plot_circ.py,sha256=qZS3auNG4qIyUvC-ijTce17xJwGBvpRvPUqPEx64KUY,8759
|
94
|
-
qulab/visualization/plot_layout.py,sha256=
|
94
|
+
qulab/visualization/plot_layout.py,sha256=FaE3I1VgY2dO5wNw_jRMwiVnUC6lHT3C0Wa7RJCUvVI,13833
|
95
95
|
qulab/visualization/plot_seq.py,sha256=UWTS6p9nfX_7B8ehcYo6UnSTUCjkBsNU9jiOeW2calY,6751
|
96
96
|
qulab/visualization/qdat.py,sha256=ZeevBYWkzbww4xZnsjHhw7wRorJCBzbG0iEu-XQB4EA,5735
|
97
97
|
qulab/visualization/rot3d.py,sha256=lMrEJlRLwYe6NMBlGkKYpp_V9CTipOAuDy6QW_cQK00,734
|
98
98
|
qulab/visualization/widgets.py,sha256=6KkiTyQ8J-ei70LbPQZAK35wjktY47w2IveOa682ftA,3180
|
99
|
-
qulab-2.11.
|
100
|
-
qulab-2.11.
|
101
|
-
qulab-2.11.
|
102
|
-
qulab-2.11.
|
103
|
-
qulab-2.11.
|
104
|
-
qulab-2.11.
|
99
|
+
qulab-2.11.6.dist-info/licenses/LICENSE,sha256=PRzIKxZtpQcH7whTG6Egvzl1A0BvnSf30tmR2X2KrpA,1065
|
100
|
+
qulab-2.11.6.dist-info/METADATA,sha256=SXXw-hAwWhB0ErJKBJX9RMx9MF4-PIXdSV6jvnKlzyk,3896
|
101
|
+
qulab-2.11.6.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
102
|
+
qulab-2.11.6.dist-info/entry_points.txt,sha256=b0v1GXOwmxY-nCCsPN_rHZZvY9CtTbWqrGj8u1m8yHo,45
|
103
|
+
qulab-2.11.6.dist-info/top_level.txt,sha256=3T886LbAsbvjonu_TDdmgxKYUn939BVTRPxPl9r4cEg,6
|
104
|
+
qulab-2.11.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|