Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shinich1 committed May 8, 2024
1 parent 4f9a055 commit 19eb94c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/source/generator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Pattern Generation

.. automethod:: rz

.. automethod:: ccx

.. automethod:: m

.. autoclass:: TranspileResult
Expand Down
20 changes: 20 additions & 0 deletions docs/source/modifier.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,28 @@ Pattern Optimization

.. automethod:: __init__

.. automethod:: add

.. automethod:: extend

.. automethod:: clear

.. automethod:: replace

.. automethod:: reorder_output_nodes

.. automethod:: reorder_input_nodes

.. automethod:: simulate_pattern

.. automethod:: get_max_degree

.. automethod:: get_angles

.. automethod:: get_vops

.. automethod:: connected_nodes

.. automethod:: run_pattern

.. automethod:: perform_pauli_measurements
Expand Down
2 changes: 1 addition & 1 deletion examples/pattern_fragments.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
circuit.ccx(0, 1, 2)
for i in range(3):
circuit.rz(i, np.pi / 4)
pattern = circuit.transpile(opt=True)
pattern = circuit.transpile(opt=True).pattern
pattern.draw_graph(flow_from_pattern=True, node_distance=(1, 0.5))

# %%
Expand Down

0 comments on commit 19eb94c

Please sign in to comment.