Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare the qutip-qip-0.2.2 release #151

Merged
merged 15 commits into from
Jun 19, 2022

Conversation

BoxiLi
Copy link
Member

@BoxiLi BoxiLi commented Jun 18, 2022

This release adds a few small patches and ensures compatibility with the dev.major version of qutip.

Improvements

  • Correct the spelling of Hadamard. (#132)
  • Quantum circuits inherit user gates from add_circuit. (#144)

But Fixes

  • Fix Circuit Plotting for non-reversed states. (#137)
  • Export circuit plots as png with dpi. (#139)
  • Fix add_gate behavior when supplied multiple indices. (#142)

BoxiLi and others added 15 commits June 6, 2022 17:52
Fix a bug in the pulse paper code
* fix circuit plotting when states are non reversed

* Include latex_template in expectation
New method QubitCircuit.draw() to export svg and png images. Density in dpi can be an argument from the user for conversion to png (defaults to 100dpi).
Separate the tests so that it skips if svg/png converters are not installed.
* quantum circuits inherit user gates from add_circuit

The `add_circuit` function in `QuantumCircuit` class used to copy the names of all gates without add the definition of user gates to the target circuit. Hence the user gates cannot be recognized by the new circuit. I made the copy of the definition automatic.
Support qutip-v5

- Add support of qutip=5.0 to `setup.cfg`
- New GitHub actions are added to test qutip-qip against the dev.major version of qutip
- Fix the importation errors for `qutip.Options`, use `qutip.SolverOptions` instead.
- Use `Qobj.full()` to transfer the matrix to NumPy arrays before using `assert_all_close`, since `Qobj.__array__` is removed.
- Tests are adapted for the new QobjEvo in qutip.
  - Replace the `QobjEvo.ops` and `QobjEvo.cte` as they are removed. Create separate test functions to compare `QobjEvo`s.
  - Remove the use of `QobjEvo.tlist`.
  - Slightly modify the pulse and noise module to correctly handle the continuous/discrete pulse in `QobjEvo`.
- Fix/Improve some other unstable/wrong tests.
Support qutip-v5

- Add support of qutip=5.0 to `setup.cfg`
- New GitHub actions are added to test qutip-qip against the dev.major version of qutip
- Fix the importation errors for `qutip.Options`, use `qutip.SolverOptions` instead.
- Use `Qobj.full()` to transfer the matrix to NumPy arrays before using `assert_all_close`, since `Qobj.__array__` is removed.
- Tests are adapted for the new QobjEvo in qutip.
  - Replace the `QobjEvo.ops` and `QobjEvo.cte` as they are removed. Create separate test functions to compare `QobjEvo`s.
  - Remove the use of `QobjEvo.tlist`.
  - Slightly modify the pulse and noise module to correctly handle the continuous/discrete pulse in `QobjEvo`.
- Fix/Improve some other unstable/wrong tests.
VQA module wrongly used the qutip.qip module, which is removed in qutip-v5.

Update the Measurement class and expand the measurement operator because calling the qutip measurement functions.

See also qutip/qutip#1890.
@BoxiLi BoxiLi merged commit 1d8cc63 into qutip:qutip-qip-0.2.X Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants