Skip to content

Commit

Permalink
New release v0.3.3 into main (#248)
Browse files Browse the repository at this point in the history
* Formula for estimating n_measurements for exp value to given accuracy updated with simpler form. (#192)
* Fix operator_expectation bug qith qubit operator / hamiltonian. (#191)
* iqcc ilc solver fork (#179)
* Make circuit iterable (#194)
* copy method for circuits + get_resources adjusted for some variations of VQE + invertible swap gate fix (#193)
* Release guide for project maintainers + version string (#195)
* Notebook: Important aspects of QChem modelling for QComputing (#199)
* Notebooks enabled for Google colab ("No local install" needed) (#198)
* Docker fix (#200)
* Excited states (#197)
* Translation function for qubit operators (#196)
* c2v axis definition changed (#205)
* Bidirectional conversion for Qiskit quantum circuits (#203)
* QEMISTClientConnection class (#207)
* Add n_qubits option to MultiformOperator compress function (#209)
* Quantum Signal Processing time-evolution (#204)
* added even trotter order > 2 (#210)
* Fixed number of qubits with scBK in ADAPT. (#214)
* Export coverage output file in github actions (#158)
* JKMN vector prep should return np array of int. (#215)
* Support for additional IonQ gates (#212)
* Remove unused n_min_orbitals attribute. (#218)
* Change JKMN Majorana definition so mapped Hamiltonian is real (#219)
* Relaxing condition fot iQCC-ILC test. (#221)
* Histogram class (#217)
* Compute energy from RDMs with FermionOperator (#220)
* IonQConnection: control update prints / verbosity. (#225)
* Refactor simulator (#213)
* added __repr__ method to Gate (#229)
* New bidirectional circuit translation functions and interface (#223)
* Add circuit.depth() in get_resources methods (#235)
* Variance and standard error of an expectation value (#238)
* VQESolver cleanup (#230)
* TETRIS-ADAPT-VQE (#241)
* TETRISADAPTSolver implementation + #224 fix
* Trotter order and active electrons for (i)QCC (#234)
* Symmetry post-selection (#232)
* Qiskit runtime integration (IBM quantum only) (#222)
* Add multi-control support for trotterization (#244)
* Compatibility with new QCloud outputs. (#246)
* Deprecate Simulator, introduce get_backend as replacement (#245)
* compute_rdms function (#228)
* Expanded FermionOperator attributes, defined logical and mathematical operations on it (add, mul, eq, etc)
* Bumping Tangelo version number in _version.py
* Update CHANGELOG.md

Co-authored-by: Valentin Senicourt <41597680+ValentinS4t1qbit@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: AlexandreF-1qbit <76115575+AlexandreF-1qbit@users.noreply.github.com>
Co-authored-by: James Brown <james.brown@1qbit.com>
Co-authored-by: JamesB-1qbit <84878946+JamesB-1qbit@users.noreply.github.com>
Co-authored-by: MPCoons <84400409+MPCoons@users.noreply.github.com>
Co-authored-by: elloyd-1qbit <58313607+elloyd-1qbit@users.noreply.github.com>
Co-authored-by: KrzysztofB-1qbit <86750444+KrzysztofB-1qbit@users.noreply.github.com>
Co-authored-by: Rudi Plesch <rudi.plesch@1qbit.com>
Co-authored-by: GitHub Actions <noreply@github.com>
Co-authored-by: Valentin Senicourt <valentin.senicourt@1qbit.com>
Co-authored-by: Joshua Goings <3915169+jjgoings@users.noreply.github.com>
  • Loading branch information
12 people committed Nov 9, 2022
1 parent c88a97e commit e985661
Show file tree
Hide file tree
Showing 114 changed files with 6,341 additions and 1,530 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/continuous_integration.yml
Expand Up @@ -24,6 +24,7 @@ jobs:
pip install pytest
pip install pytest-cov
pip install jupyter
pip install pyqsp
- name: Install pycodestyle
run: |
Expand All @@ -32,12 +33,12 @@ jobs:
- name: pycodestyle tests
run: |
cd dev_tools
pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html test_conformance.py
pytest --doctest-modules --junitxml=junit/pycodestyle-test-results.xml test_conformance.py
if: always()

- name: Install backends except qsharp/qdk
run: |
pip install qiskit==0.33.1 # Due to strange behaviour of noise model
pip install qiskit
pip install qulacs
pip install amazon-braket-sdk
pip install cirq
Expand All @@ -64,11 +65,28 @@ jobs:
- name: tangelo tests
run: |
cd tangelo
pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
pytest --doctest-modules --junitxml=junit/tangelo-test-results.xml --cov=. --cov-report=xml --cov-report=html
if: always()

- name: tangelo notebooks as tests
run: |
cd examples
pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html test_notebooks.py
pytest --doctest-modules --junitxml=junit/notebook-test-results.xml test_notebooks.py
if: always()

- name: Upload pytest test results
uses: actions/upload-artifact@v3
with:
name: tangelo-test-results
path: tangelo/junit/tangelo-test-results.xml

- name: Upload pytest html results
uses: actions/upload-artifact@v3
with:
name: tangelo-tests-coverage
path: tangelo/htmlcov
if: always()

- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
if: always()
28 changes: 28 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,34 @@
This file documents the main changes between versions of the code.


## [0.3.3] - 2022-11-09

### Added

- Circuit translation from any supported source to any supported target format, with a single function
- Translation for qubit / Pauli operators for qiskit format
- All algorithms now run with any built-in or user-defined backend, simulator or QPU.
- TETRIS-ADAPT VQE
- iQCC-ILC
- Quantum signal processing time-evolution
- higher even trotterization orders fortime-evolution
- Histogram class, featuring methods for renormalization, post-selection, aggregation
- Computation of variance of expectation values
- Function to compute RDMs from experimental data / classical shadow
- IBMConnection Class for submission of experiments to IBM Quantum
- qchem_modelling_basics and excited_states notebooks

### Changed

- All notebooks now launchable with Google Collab
- Docker image updated

### Deprecated

- Simulator class deprecated in favor of get_backend function in linq
- backend-specific translate_xxx functions (e.g translate_qiskit, translate_qulacs...) deprecated in favor of translate_circuit in linq


## [0.3.2] - 2022-08-06

### Added
Expand Down
6 changes: 3 additions & 3 deletions examples/classical_shadows.ipynb
Expand Up @@ -153,11 +153,11 @@
"metadata": {},
"outputs": [],
"source": [
"from tangelo.linq import Simulator, Circuit\n",
"from tangelo.linq import get_backend, Circuit\n",
"\n",
"# Definition of the shots budget (shadow size) and backend.\n",
"n_shots_budget = 1000\n",
"backend = Simulator(\"cirq\", noise_model=None)"
"backend = get_backend(\"cirq\", noise_model=None)"
]
},
{
Expand Down Expand Up @@ -300,7 +300,7 @@
"n_shots_per_basis = round(n_shots_budget / len(qubitwise_measurements))\n",
"\n",
"# Shot-based backend.\n",
"backend = Simulator(\"cirq\", n_shots=n_shots_per_basis, noise_model=None)\n",
"backend = get_backend(\"cirq\", n_shots=n_shots_per_basis, noise_model=None)\n",
"\n",
"# Computing the histograms for the grouped bases.\n",
"qubitwise_results = dict()\n",
Expand Down
1,388 changes: 1,387 additions & 1 deletion examples/excited_states.ipynb

Large diffs are not rendered by default.

0 comments on commit e985661

Please sign in to comment.