An open API service indexing awesome lists of open source software.

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

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