Skip to content

Commit

Permalink
Merge pull request #212 from BBN-Q/feature/2q-tests
Browse files Browse the repository at this point in the history
Feature/2q tests
  • Loading branch information
grahamrow committed Jul 19, 2019
2 parents eaaa01e + 793b012 commit 4f1d197
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
3 changes: 2 additions & 1 deletion QGL/Compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ def compile_to_hardware(seqs,
'axis_descriptor': axis_descriptor,
'qubits': [c.label for c in channels if isinstance(c, Channels.Qubit)],
'measurements': [c.label for c in channels if isinstance(c, Channels.Measurement)],
'receivers': receiver_measurements
'receivers': receiver_measurements,
'edges': [c.label for c in channels if isinstance(c, Channels.Edge)]
}
if extra_meta:
meta.update({'extra_meta': extra_meta})
Expand Down
35 changes: 12 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,21 @@ notebook](https://github.com/BBN-Q/QGL/blob/master/doc/QGL-demo.ipynb).
The most straightforward way to get up and running is to use the [Anaconda
Python distribution](http://continuum.io/downloads). This includes nearly all
the dependencies. The remaining dependencies can be installed from the terminal
or Anaconda Command Prompt on Windows.
or Anaconda Command Prompt on Windows. While QGL can be run on windows, our
experiment control software [Auspex](https://github.com/BBN-Q/auspex) relies on linux
when running qubit experiments.

### Python 2.7
### Python 3.6+

```bash
conda install atom future
pip install watchdog
```

### Python 3.4+

```bash
conda install -c ecpy atom
cd QGL/
pip install .
```

For Python 3.6+ you may need to install watchdog from conda forge:
```
conda install -c conda-forge watchdog
conda install -c ecpy atom
cd QGL/
pip install .
Alternatively, if you plan to modify the source code it will be easier to perform a
developer install using:
```bash
pip install -e .
```

If you'd like to use some of the built-in gate-set-tomography functionality,
you can grab the PyGSTi package during the install:
```
Expand All @@ -50,14 +40,13 @@ going to System -> Advanced Settings -> Environment variables. On Mac/Linux
machines add the following line to your .bashrc or .bash_profile: ``` export
PYTHONPATH=/path/to/QGL/repo:$PYTHONPATH```


The QGL config file will be created the first time you run `import QGL` or `from QGL import *`.
## Usage
QGL is designed to be utilized alongside Auspex, and most of the usage example,
including how to define a channel library, can be found in the [Auspex documentation](https://auspex.readthedocs.io/en/develop/qubits.html)

## Dependencies
* Python 2.7 or 3.4+
* Python 3.6+
* Numpy/Scipy
* h5py
* Bokeh 0.11
* networkx 2.0
* iPython/Jupyter 4.0 (only for Jupyter notebooks)
* bbndb

0 comments on commit 4f1d197

Please sign in to comment.