https://github.com/echo724/qcb
Quantum Circuit Builder using MicroQiskit
https://github.com/echo724/qcb
Last synced: 9 months ago
JSON representation
Quantum Circuit Builder using MicroQiskit
- Host: GitHub
- URL: https://github.com/echo724/qcb
- Owner: echo724
- Created: 2021-02-18T13:25:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-18T13:25:32.000Z (over 5 years ago)
- Last Synced: 2025-08-26T08:35:56.658Z (10 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
qcb
===
Build Quantum Circuit using MicroQiskit
- Create Circuit from Online Gate Instruction
- Return simulation result
Simple Usage
------------
qcb -q 2 -c 2 (--prob)(--state) "h 0 cx 0 1 m all"
------------
- The Default Result is Counts
- Choose result type either prob or state
positional arguments:
gates String for applying gate and its position
Gate Type
--------------------
h a: Hadamard gate at qubit a
x a: X gate at qubit a
y a: Y gate at qubit a
z a: Z gate at qubit a
rx a b: RX gate at qubit b by rotating a
rz a b: RZ gate at qubit b by rotating a
ry a b: RY gate at qubit b by rotating a
cx a b: CNOT gate at control a, target b
crx a b c: CRX gate at control b, target c by rotating a
m a b: Measure at qubit a to clbit b
m 'all': Measure all qubits
--------------------
optional arguments:
-h, --help show this help message and exit
-q Q An integer for adding quantum bits
-c C An integer for adding classical bits
--prob Return probabilities as the result
--state Return statevector as the result