Skip to content

Instantly share code, notes, and snippets.

View HuangJunye's full-sized avatar
🧑‍💻
Coding with Qiskit

Junye Huang HuangJunye

🧑‍💻
Coding with Qiskit
View GitHub Profile
@HuangJunye
HuangJunye / Save circuit as qasm string or file and reload later.ipynb
Created January 5, 2023 14:25
Save circuit as qasm string or file and reload later
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function sim_cir()
qc = QuantumCircuit()
qc.set_registers(3,3)
for slots = 1,8 do
for wires = 1,3 do
if (gates[wires][slots] == 2) then
qc.x(wires-1)
elseif (gates[wires][slots] == 3) then
qc.y(wires-1)