• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

qutip / qutip / 3727
87%

Build:
DEFAULT BRANCH: master
Ran 28 Mar 2021 12:01AM UTC
Jobs 1
Files 129
Run time 8s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3727

push

travis-ci

web-flow
Fix dnorm issues with sparse matrices (#1463)

Newer versions of cvxpy (1.1+) had introduced some problems for us with
sparse matrices: see cvxgrp/cvxpy#1159, which at the time of writing was
still unresolved.

This introduces a new method of sparse-matrix packing to workaround the
issue based on a method in the linked issue, and adds a dense-matrix
option to dnorm in cases where the sparse algebra does not work.  The
sparse form should typically be used, because the superoperator
representation of a quantum channel will usually cause the dimension to
be rather large, except when dealing with states of only one or two
qubits.

Also in cvxpy 1.1+, the '*' operator for matrix multiplication now
issues a DeprecationWarning in favour or using '@'.  cvxpy 1.0 also
supports '@', so the change is safe.

The memoisation was previously made over dnorm_problem, however really
the only slow operation was the call to tensor_swap.  The new method of
sparse-matrix packing makes the construction of the optimisation problem
strongly dependent on the sparsity structure of the supplied channel, so
memoisation over the full problem creation is not useful.  Instead, the
memoisation is moved to be only over the tensor_swap operation, which
also minimises the risk of modification of mutable values.

Co-authored-by: MrRobot2211 <felipebihaiek@gmail.com>
Co-authored-by: Jake Lishman <jake@binhbar.com>

14539 of 22817 relevant lines covered (63.72%)

0.64 hits per line

Jobs
ID Job ID Ran Files Coverage
2 3727.2 (_CONDA_SUFFIX="Linux-x86_64") 28 Mar 2021 12:01AM UTC 0
63.72
Travis Job 3727.2
Source Files on build 3727
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3727
  • 566ad77b on github
  • Prev Build on master (#3723)
  • Next Build on master (#3728)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc