Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
shinich1 committed Mar 16, 2024
1 parent d5c3aa9 commit 877320f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

### Fixed

### Changed

## [0.2.11] - 2024-03-16

### Added

- Added flow and gflow verifiers ([#99](https://github.com/TeamGraphix/graphix/issues/99)).
- Added `gflow.flow_from_pattern` method.

Expand Down
6 changes: 3 additions & 3 deletions examples/pattern_fragments.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
circuit = Circuit(3)
circuit.ccx(0, 1, 2)
pattern = circuit.transpile()
pattern.draw_graph()
pattern.draw_graph(flow_from_pattern=False)

#%%
# Using :code:`opt=True` option for :code:`transpile` method, we switch to patterns with non-XY plane measurements allowed,
# which has gflow (not flow). For CCX gate, the number of ancilla qubits required is nearly halved:
pattern = circuit.transpile(opt=True)
pattern.draw_graph(node_distance=(1,0.4))
pattern.draw_graph(node_distance=(1.2,0.8))
# sphinx_gallery_thumbnail_number = 2

#%%
Expand All @@ -33,7 +33,7 @@
for i in range(3):
circuit.rz(i, np.pi/4)
pattern = circuit.transpile(opt=True)
pattern.draw_graph(flow_from_pattern=False, node_distance=(1,0.5))
pattern.draw_graph(flow_from_pattern=True, node_distance=(1,0.5))

#%%
# Swap gate is just a swap of node indices during compilation, requiring no ancillas.
Expand Down
2 changes: 1 addition & 1 deletion graphix/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.10"
__version__ = "0.2.11"

0 comments on commit 877320f

Please sign in to comment.