Skip to content

Commit 05bbb69

Browse files
committed
Implemented Quantum Circuit Logic
1 parent c729a54 commit 05bbb69

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

core/circuits.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1+
from qskit.circuits import hadamard, cx
12

2-
# ...existing content of circuits.py...
3+
fef create_anti_error_circuit():
4+
# Creates a basic Quantum Cyber hadamard circuit
5+
cq = cx.Circuit(1)
6+
cq.add(hadamard(1))
7+
cq.measure(Xcx.M0, key=0)\n return cq
8+
9+
if __name__ == '__main__':
10+
circuit = create_anti_error_circuit()
11+
print(circuit)

0 commit comments

Comments
 (0)