@@ -192,9 +192,32 @@ def draw(self, qubit_labels=None, drawing_order=None):
192192 drawing_order (dict): position of each qubit in the output
193193 graphic. Keys: qubit IDs, Values: position of qubit on the
194194 qubit line in the graphic.
195+ **kwargs (dict): additional parameters are used to update
196+ the default plot parameters
195197
196198 Returns:
197199 A tuple containing the matplotlib figure and axes objects
200+
201+ Note:
202+ Additional keyword arguments can be passed to this
203+ function in order to further customize the figure output
204+ by matplotlib (default value in parentheses):
205+
206+ - fontsize (14): Font size in pt
207+ - column_spacing (.5): Vertical spacing between two
208+ neighbouring gates (roughly in inches)
209+ - control_radius (.015): Radius of the circle for controls
210+ - labels_margin (1): Margin between labels and begin of
211+ wire (roughly in inches)
212+ - linewidth (1): Width of line
213+ - not_radius (.03): Radius of the circle for X/NOT gates
214+ - gate_offset (.05): Inner margins for gates with a text
215+ representation
216+ - mgate_width (.1): Width of the measurement gate
217+ - swap_delta (.02): Half-size of the SWAP gate
218+ - x_offset (.05): Absolute X-offset for drawing within the axes
219+ - wire_height (1): Vertical spacing between two qubit
220+ wires (roughly in inches)
198221 """
199222 max_depth = max (
200223 len (self ._qubit_lines [qubit_id ]) for qubit_id in self ._qubit_lines )
0 commit comments