Skip to content

Commit

Permalink
Merge pull request #37 from dlyongemallo/minor_readme_edit
Browse files Browse the repository at this point in the history
Update example usage in README.md file.
  • Loading branch information
dlyongemallo authored Apr 8, 2024
2 parents 90cd827 + 6372e2e commit 7c7e4e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ from zxpass import ZXPass
# Create a qiskit `QuantumCircuit` here...
qc = QuantumCircuit(...)

zxpass = ZXPass()
pass_manager = PassManager(zxpass)
pass_manager = PassManager(ZXPass())
zx_qc = pass_manager.run(qc)
```

Expand All @@ -29,8 +28,7 @@ def my_optimize(c: pyzx.Circuit) -> pyzx.Circuit:
# do stuff to simplify `g`...
return pyzx.extract.extract_circuit(g)

zxpass = ZXPass(my_optimize)
pass_manager = PassManager(zxpass)
pass_manager = PassManager(ZXPass(my_optimize))
my_qc = pass_manager.run(qc)
```

Expand Down

0 comments on commit 7c7e4e3

Please sign in to comment.