XanaduAI / thewalrus

A library for the calculation of hafnians, Hermite polynomials and Gaussian boson sampling.
https://the-walrus.readthedocs.io
Apache License 2.0
99 stars 54 forks source link

Run latest Black version #324

Closed thisac closed 2 years ago

thisac commented 2 years ago

Context: Black has been updated to v22.1.0 which changes the way the power operators should be styled:

a ** b should now be formatted as a**b.

Description of the Change: All spaces around the power operator are removed (along with at least one other minor change).

Benefits: The formatting check now passes with the latest version of Black.

Possible Drawbacks: None

Related GitHub Issues: None

codecov[bot] commented 2 years ago

Codecov Report

Merging #324 (9db1212) into master (2d0c2ec) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #324   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         1575      1575           
=========================================
  Hits          1575      1575           
Impacted Files Coverage Δ
thewalrus/_permanent.py 100.00% <ø> (ø)
thewalrus/fock_gradients.py 100.00% <ø> (ø)
thewalrus/quantum/adjacency_matrices.py 100.00% <ø> (ø)
thewalrus/_hafnian.py 100.00% <100.00%> (ø)
thewalrus/quantum/fock_tensors.py 100.00% <100.00%> (ø)
thewalrus/quantum/means_and_variances.py 100.00% <100.00%> (ø)
thewalrus/quantum/photon_number_distributions.py 100.00% <100.00%> (ø)
thewalrus/samples.py 100.00% <100.00%> (ø)
thewalrus/symplectic.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 2d0c2ec...9db1212. Read the comment docs.