Skip to content

echo724/qcb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Quantum Circuit Builder using MicroQiskit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages