Skip to content

Commit

Permalink
Update example in PyQIR readme (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
bamarsha authored Jan 3, 2023
1 parent 431959b commit 9605cb2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pyqir/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ returning the result. The unoptimized QIR is displayed in the terminal when
executed:

```python
from pyqir.generator import BasicQisBuilder, SimpleModule
from pyqir import BasicQisBuilder, SimpleModule

module = SimpleModule("Bell", num_qubits=2, num_results=2)
qis = BasicQisBuilder(module.builder)
Expand Down Expand Up @@ -66,9 +66,17 @@ declare void @__quantum__qis__h__body(%Qubit*)
declare void @__quantum__qis__cnot__body(%Qubit*, %Qubit*)
declare void @__quantum__qis__mz__body(%Qubit*, %Result* writeonly)
declare void @__quantum__qis__mz__body(%Qubit*, %Result* writeonly) #1
attributes #0 = { "EntryPoint" "requiredQubits"="2" "requiredResults"="2" }
attributes #0 = { "entry_point" "num_required_qubits"="2" "num_required_results"="2" "output_labeling_schema" "qir_profiles"="custom" }
attributes #1 = { "irreversible" }
!llvm.module.flags = !{!0, !1, !2, !3}
!0 = !{i32 1, !"qir_major_version", i32 1}
!1 = !{i32 7, !"qir_minor_version", i32 0}
!2 = !{i32 1, !"dynamic_qubit_management", i1 false}
!3 = !{i32 1, !"dynamic_result_management", i1 false}
```

## Contributing
Expand Down

0 comments on commit 9605cb2

Please sign in to comment.