semvec/pypi-packages huggingface dataset:
bitcaster_sdk 0.1.0
Bitcaster Python SDK
License: MIT
Requires Python: >=3.9

Bitcaster Python SDK
--------------------


How to use it:

Setupt environemnt

- Set Bitcaster application-end-point using Bitcaster Key, get it at <bc_instance>/o/<org>/a/<app>/key/
    
    ```
    export BITCASTER_BAE=http://<KEY>@<SERVER>/api/o/<organization_slug>/p/<project_slug>/a/<application_slug>/ 

    ```

- in your code

    ```  
    import bitcaster_sdk 
        bitcaster_sdk.init()
        from bitcaster_sdk import trigger
        trigger(11)

    ```



- from command line

    ```  
    $ bitcaster
    Usage: bitcaster [OPTIONS] COMMAND [ARGS]...
    
    Options:
      --bae BAE  Bitcaster BAE. Not needed if $BITCASTER_BAE is set
      --debug
      --help     Show this message and exit.
    
    Commands:
      events   lists Application's Events
      lists    lists Project's DistributionList
      members  lists DistributionList Members
      ping     ping Bitcaster server
      trigger  trigger Application's Event
      users    displays Organization's Users

    ```
abrax 1.2.1
Cross platform circuit transpiler
License: MIT
Requires Python: >=3.9

## abraxas

<img src="./docs/assets/favicon.svg" width="100" height="100" align="right" />

A tiny library to transpile quantum circuits. The goal is to speed up the time it takes to convert simple circuits across languages fast. Anything beyond a certain complexity should be written in the respective languages directly.

[Qiskit](https://qiskit.org/)
&bullet; [CudaQ](https://nvidia.github.io/cuda-quantum/latest/install.html)
&bullet; [Pennylane](https://docs.pennylane.ai/en/stable/code/qml.html)
&bullet; [Cirq](https://quantumai.google/cirq)
&bullet; [TKet](https://tket.quantinuum.com/)
&bullet; [Quil](https://pyquil.readthedocs.io/en/stable/)
&bullet; [Braket](https://aws.amazon.com/braket/)

## Install
Qiskit has also been marked as a dependency since about a third of the functions use it anyway.

```py
pip install abrax
```

## Examples
### toPennylane
```python
from qiskit import QuantumCircuit, Parameter
from abrax import toPenny, toQasm
import pennylane as qml

qc = QuantumCircuit(3)
p = Parameter('x')
qc.h([0, 1, 2])
qc.cx(0, 2)
qc.rx(0, 0)
qc.cx(1, 2)
qc.ry(p, 2)

qasm = toQasm(qc)
dev = qml.device("default.qubit", wires=2)
circuit = toPenny(qasm, dev) # pennylane needs 'dev'
# print(qml.draw(circuit)())
# 0: ──H─╭X──RX(0.00)───────────────┤  Probs
# 1: ──H─│────────────╭X────────────┤  Probs
# 2: ──H─╰●──X────────╰●──RY(x)─────┤  Probs
```

**Supported conversions**:
```mermaid
graph LR
  subgraph Circuit
    direction LR
    IR[Pseudo-QASM]
    IR2[QASM]
  end
  A0[Qiskit] --> Circuit
  B0[Pennylane] --> Circuit
  C0[Cirq] --> Circuit
  D0[TKet] --> Circuit
  E0[Quil] --> Circuit
  F0["CudaQ (half)"] --> Circuit
  G0[Braket] --> Circuit

  Circuit --> A1[Qiskit]
  Circuit --> B1[Pennylane]
  Circuit --> C1[Cirq]
  Circuit --> D1[TKet]
  Circuit --> E1[Quil]
  Circuit --> F1[CudaQ]
  Circuit --> G1[Braket]
```

## Supported Frameworks

| | | |
|:-------------------------:|:-------------------------:|:-------------------------:|
|<img src="./docs/assets/cirq.jpg" width="150" />|<img src="./docs/assets/tket.jpg" width="150" />|<img src="./docs/assets/penny.jpg" width="150" />|
|<img src="./docs/assets/qiskit.jpg" width="150" />|<img src="./docs/assets/cudaq.jpg" width="150" />|<img src="./docs/assets/rigetti.jpg" width="150" />|
|<img src="./docs/assets/braket.jpg" width="150" />|||