"Diagram" (QuantumCircuitOperator property) | |
"ShowWires" | True | whether to show horizontal wires |
"WireLabels" | Automatic | wire labeling |
"MeasurementWireLabel" | "c" | measurement wire label |
"MeasurementWirePosition" | Top | measurement wire position |
"ShowMeasurementWire" | True | whether to show a measurement wire |
"ShowEmptyWires" | True | whether to render empty wires |
Wires.
"ShowLabel" | False | whether to include a circuit label |
"ShowGateLabels" | True | whether to show labels on gates |
"RotateGateLabel" | Automatic | rotation angle of gate labels |
Labels.
"Size" | .75 | operator size |
"HorizontalGapSize" | 1 | distance between operators |
"VerticalGapSize" | 1 | distance between wires |
Sizes.
"GateBackgroundStyle" | Automatic | gate background style rules |
"GateBoundaryStyle" | Automatic | gate boundary style rules |
"GateShapeFunction" | Automatic | custom function to render gates |
Styling.
"ShowOutline" | False | outline a circuit with a frame |
"ShowConnectors" | False | show points of wire-gate connections |
"ShowWireEndpoints" | False | show wire end-points |
Various graphics elements.
"SubcircuitLevel" | 1 | level of subcircuits to expand up-to |
"SubcircuitOptions" | {} | pass additional diagram options to subcircuits |
Sub-circuits.
Barriers can be added to shift gate positions:
In[460]:=
QuantumCircuitOperator |
Out[460]=
In[462]:=
QuantumCircuitOperator |
Out[462]=
"GateBackgroundStyle" and "GateBoundaryStyle" can include rules for changing gate appearance:
In[386]:=
QuantumCircuitOperator |
Out[386]=
"GateShapeFunction" can be specified to render gates with a custom function that takes {center, label, horizontalPositions, verticalPositions} arguments:
In[387]:=
QuantumCircuitOperator |
Out[387]=
"Size", "HorizontalGapSize" and "VerticalGapSize" correspondingly control gate size, distance between gates and a distance between wires:
In[388]:=
QuantumCircuitOperator |
Out[388]=
"SubcircuitLevel" specifies a level depth of sub-circuits to expand:
"SubcircuitOptions" can be used to pass options to sub-circuit diagrams:
"WireLabels" can be a list of labels or a list of rules: