Created
February 20, 2023 10:18
-
-
Save lazyoracle/2e604904debcacd93782b8323b5c92b3 to your computer and use it in GitHub Desktop.
transpile circuits using qiskit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from qiskit import * | |
import qiskit | |
circ = QuantumCircuit(1) | |
circ.h(0) | |
transpiled_circ = qiskit.compiler.transpile(circ, basis_gates = ['rx', 'ry', 'rz']) | |
transpiled_circ.draw() | |
print(transpiled_circ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment