Metadata-Version: 2.1
Name: cirq-superstaq
Version: 0.0.2
Summary: The Cirq module that provides tools and access to SuperstaQ
Home-page: https://github.com/SupertechLabs/cirq-superstaq
Author: Super.tech
Author-email: pranav@super.tech
License: N/A
Platform: UNKNOWN
Requires-Python: >=3.7.0
Description-Content-Type: text/markdown
Requires-Dist: applications-superstaq
Requires-Dist: cirq
Requires-Dist: qubovert (==1.2.3)

This package is used to access SuperstaQ via a Web API through [Cirq](https://github.com/quantumlib/Cirq).
Cirq programmers can take advantage of the applications, pulse level optimizations, and write-once-target-all
features of SuperstaQ with this package.


Please note that Python version `3.7` or higher is required. cirq-superstaq and all of its
dependencies can be installed via:

```
python3 -m venv venv_cirq_superstaq
source venv_cirq_superstaq/bin/activate
pip install cirq-superstaq
```

### Creating and submitting a circuit through cirq-superstaq
```python
import cirq
import cirq_superstaq

q0 = cirq.LineQubit(0)
q1 = cirq.LineQubit(1)

circuit = cirq.Circuit(cirq.H(q0), cirq.CNOT(q0, q1), cirq.measure(q0))

service = cirq_superstaq.Service(
    api_key="""Insert superstaq token that you received from https://superstaq.super.tech""",
    verbose=True,
)
job = service.create_job(circuit=circuit, repetitions=1, target="ibmq_qasm_simulator")
print("This is the job that's created ", job.status())
print(job.counts())
```


