Skip to content

Commit

Permalink
Explain why decompose is used (Qiskit#1513)
Browse files Browse the repository at this point in the history
Closes Qiskit#1439 
 
Decompose is basically only used here to visualize the circuit
correctly. If it wasn't, it just be an opaque block when calling
`draw()`
  • Loading branch information
kaelynj authored Jun 14, 2024
1 parent c7e2a8b commit 02c4fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/build/unitary-synthesis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ circuit.draw("mpl")

![output](/images/build/unitary-synthesis/unitary_target-qiskit-1.0.svg)

However, after re-synthesizing with the following code, it only needs a single CX gate.
However, after re-synthesizing with the following code, it only needs a single CX gate. (Here we use the `QuantumCircuit.decompose()` method to better visualize the gates used to re-synthesize the unitary.)

```python
from qiskit.quantum_info import Operator
Expand Down

0 comments on commit 02c4fe8

Please sign in to comment.