Skip to main content
Ctrl+K
Python  documentation - Home

Site Navigation

  • Industrial Optimization
  • Quantum Research
  • Ocean SDK
  • Leap Service
  • Concepts
    • Licenses
    • Bibliography
  • GitHub
  • Leap

Site Navigation

  • Industrial Optimization
  • Quantum Research
  • Ocean SDK
  • Leap Service
  • Concepts
    • Licenses
    • Bibliography
  • GitHub
  • Leap

Section Navigation

  • Get Started with Ocean Software
  • Reference Documentation
    • dimod
      • API Reference
        • Models: BQM, CQM, QM, Others
        • Generators and Application Modeling
        • Utilities
        • Samples
        • Vartype
        • Samplers and Composites
        • API for Samplers and Composites
        • Variables
        • Exceptions
        • Typing
        • C++ API
    • dwavebinarycsp
    • dwave-cloud-client
    • dwave-gate
    • dwave-hybrid
    • dwave-inspector
    • dwave-networkx
    • dwave-optimization
    • dwave-preprocessing
    • dwave-samplers
    • dwave-system
    • minorminer
    • penaltymodel
  • CLI
  • Source Code
  • Ocean SDK Release Notes
  • Contribute
  • Ocean SDK
  • Utilities
  • dimod.binary...

dimod.binary.quicksum#

quicksum(iterable: Iterable[BinaryQuadraticModel | QuadraticModel | float | floating | integer]) → BinaryQuadraticModel | QuadraticModel[source]#

Sum iterable’s items.

This function is an alternative to the built-in sum(). It is generally faster when adding many BinaryQuadraticModels and QuadraticModels because it creates fewer intermediate objects.

On this page
  • quicksum()
Show Source

© Copyright D-Wave.

Ocean SDK version 8.3.0.