Skip to main content
Back to top
Ctrl
+
K
Site Navigation
Getting Started
Concepts
CLI
Packages
Contribute
Licenses
System Docs
Legal
GitHub
Site Navigation
Getting Started
Concepts
CLI
Packages
Contribute
Licenses
System Docs
Legal
GitHub
Section Navigation
dimod
Introduction
Reference Documentation
Models: BQM, CQM, QM, Others
dimod.binary.BinaryQuadraticModel.adj
dimod.binary.BinaryQuadraticModel.binary
dimod.binary.BinaryQuadraticModel.dtype
dimod.binary.BinaryQuadraticModel.linear
dimod.binary.BinaryQuadraticModel.num_interactions
dimod.binary.BinaryQuadraticModel.num_variables
dimod.binary.BinaryQuadraticModel.offset
dimod.binary.BinaryQuadraticModel.quadratic
dimod.binary.BinaryQuadraticModel.shape
dimod.binary.BinaryQuadraticModel.spin
dimod.binary.BinaryQuadraticModel.variables
dimod.binary.BinaryQuadraticModel.vartype
dimod.binary.BinaryQuadraticModel.add_linear
dimod.binary.BinaryQuadraticModel.add_linear_equality_constraint
dimod.binary.BinaryQuadraticModel.add_linear_from
dimod.binary.BinaryQuadraticModel.add_linear_from_array
dimod.binary.BinaryQuadraticModel.add_linear_inequality_constraint
dimod.binary.BinaryQuadraticModel.add_quadratic
dimod.binary.BinaryQuadraticModel.add_quadratic_from
dimod.binary.BinaryQuadraticModel.add_quadratic_from_dense
dimod.binary.BinaryQuadraticModel.add_variable
dimod.binary.BinaryQuadraticModel.change_vartype
dimod.binary.BinaryQuadraticModel.clear
dimod.binary.BinaryQuadraticModel.contract_variables
dimod.binary.BinaryQuadraticModel.copy
dimod.binary.BinaryQuadraticModel.degree
dimod.binary.BinaryQuadraticModel.degrees
dimod.binary.BinaryQuadraticModel.empty
dimod.binary.BinaryQuadraticModel.energies
dimod.binary.BinaryQuadraticModel.energy
dimod.binary.BinaryQuadraticModel.fix_variable
dimod.binary.BinaryQuadraticModel.fix_variables
dimod.binary.BinaryQuadraticModel.flip_variable
dimod.binary.BinaryQuadraticModel.from_coo
dimod.binary.BinaryQuadraticModel.from_file
dimod.binary.BinaryQuadraticModel.from_ising
dimod.binary.BinaryQuadraticModel.from_numpy_vectors
dimod.binary.BinaryQuadraticModel.from_qubo
dimod.binary.BinaryQuadraticModel.from_serializable
dimod.binary.BinaryQuadraticModel.is_almost_equal
dimod.binary.BinaryQuadraticModel.is_equal
dimod.binary.BinaryQuadraticModel.is_linear
dimod.binary.BinaryQuadraticModel.iter_linear
dimod.binary.BinaryQuadraticModel.iter_neighborhood
dimod.binary.BinaryQuadraticModel.get_linear
dimod.binary.BinaryQuadraticModel.get_quadratic
dimod.binary.BinaryQuadraticModel.maximum_energy_delta
dimod.binary.BinaryQuadraticModel.nbytes
dimod.binary.BinaryQuadraticModel.normalize
dimod.binary.BinaryQuadraticModel.reduce_linear
dimod.binary.BinaryQuadraticModel.reduce_neighborhood
dimod.binary.BinaryQuadraticModel.reduce_quadratic
dimod.binary.BinaryQuadraticModel.relabel_variables
dimod.binary.BinaryQuadraticModel.relabel_variables_as_integers
dimod.binary.BinaryQuadraticModel.remove_interaction
dimod.binary.BinaryQuadraticModel.remove_interactions_from
dimod.binary.BinaryQuadraticModel.remove_variable
dimod.binary.BinaryQuadraticModel.resize
dimod.binary.BinaryQuadraticModel.scale
dimod.binary.BinaryQuadraticModel.set_linear
dimod.binary.BinaryQuadraticModel.set_quadratic
dimod.binary.BinaryQuadraticModel.to_coo
dimod.binary.BinaryQuadraticModel.to_file
dimod.binary.BinaryQuadraticModel.to_ising
dimod.binary.BinaryQuadraticModel.to_numpy_vectors
dimod.binary.BinaryQuadraticModel.to_polystring
dimod.binary.BinaryQuadraticModel.to_qubo
dimod.binary.BinaryQuadraticModel.to_serializable
dimod.binary.BinaryQuadraticModel.update
dimod.binary.as_bqm
dimod.ConstrainedQuadraticModel.constraints
dimod.ConstrainedQuadraticModel.objective
dimod.ConstrainedQuadraticModel.variables
dimod.ConstrainedQuadraticModel.add_constraint
dimod.ConstrainedQuadraticModel.add_constraint_from_comparison
dimod.ConstrainedQuadraticModel.add_constraint_from_iterable
dimod.ConstrainedQuadraticModel.add_constraint_from_model
dimod.ConstrainedQuadraticModel.add_discrete
dimod.ConstrainedQuadraticModel.add_discrete_from_comparison
dimod.ConstrainedQuadraticModel.add_discrete_from_iterable
dimod.ConstrainedQuadraticModel.add_discrete_from_model
dimod.ConstrainedQuadraticModel.add_variable
dimod.ConstrainedQuadraticModel.add_variables
dimod.ConstrainedQuadraticModel.check_feasible
dimod.ConstrainedQuadraticModel.fix_variable
dimod.ConstrainedQuadraticModel.fix_variables
dimod.ConstrainedQuadraticModel.flip_variable
dimod.ConstrainedQuadraticModel.from_bqm
dimod.ConstrainedQuadraticModel.from_discrete_quadratic_model
dimod.ConstrainedQuadraticModel.from_dqm
dimod.ConstrainedQuadraticModel.from_qm
dimod.ConstrainedQuadraticModel.from_quadratic_model
dimod.ConstrainedQuadraticModel.from_file
dimod.ConstrainedQuadraticModel.from_lp_file
dimod.ConstrainedQuadraticModel.iter_constraint_data
dimod.ConstrainedQuadraticModel.iter_violations
dimod.ConstrainedQuadraticModel.is_almost_equal
dimod.ConstrainedQuadraticModel.is_equal
dimod.ConstrainedQuadraticModel.is_linear
dimod.ConstrainedQuadraticModel.lower_bound
dimod.ConstrainedQuadraticModel.num_biases
dimod.ConstrainedQuadraticModel.num_quadratic_variables
dimod.ConstrainedQuadraticModel.relabel_constraints
dimod.ConstrainedQuadraticModel.relabel_variables
dimod.ConstrainedQuadraticModel.remove_constraint
dimod.ConstrainedQuadraticModel.set_lower_bound
dimod.ConstrainedQuadraticModel.set_objective
dimod.ConstrainedQuadraticModel.set_upper_bound
dimod.ConstrainedQuadraticModel.spin_to_binary
dimod.ConstrainedQuadraticModel.substitute_self_loops
dimod.ConstrainedQuadraticModel.to_file
dimod.ConstrainedQuadraticModel.upper_bound
dimod.ConstrainedQuadraticModel.vartype
dimod.ConstrainedQuadraticModel.violations
dimod.QuadraticModel.adj
dimod.QuadraticModel.dtype
dimod.QuadraticModel.linear
dimod.QuadraticModel.num_interactions
dimod.QuadraticModel.num_variables
dimod.QuadraticModel.offset
dimod.QuadraticModel.quadratic
dimod.QuadraticModel.shape
dimod.QuadraticModel.variables
dimod.QuadraticModel.add_linear
dimod.QuadraticModel.add_linear_from
dimod.QuadraticModel.add_quadratic
dimod.QuadraticModel.add_quadratic_from
dimod.QuadraticModel.add_variable
dimod.QuadraticModel.add_variables_from
dimod.QuadraticModel.add_variables_from_model
dimod.QuadraticModel.change_vartype
dimod.QuadraticModel.clear
dimod.QuadraticModel.copy
dimod.QuadraticModel.degree
dimod.QuadraticModel.energies
dimod.QuadraticModel.energy
dimod.QuadraticModel.fix_variable
dimod.QuadraticModel.fix_variables
dimod.QuadraticModel.flip_variable
dimod.QuadraticModel.from_bqm
dimod.QuadraticModel.from_file
dimod.QuadraticModel.get_linear
dimod.QuadraticModel.get_quadratic
dimod.QuadraticModel.is_almost_equal
dimod.QuadraticModel.is_equal
dimod.QuadraticModel.is_linear
dimod.QuadraticModel.iter_linear
dimod.QuadraticModel.iter_neighborhood
dimod.QuadraticModel.iter_quadratic
dimod.QuadraticModel.lower_bound
dimod.QuadraticModel.nbytes
dimod.QuadraticModel.set_lower_bound
dimod.QuadraticModel.set_upper_bound
dimod.QuadraticModel.reduce_linear
dimod.QuadraticModel.reduce_neighborhood
dimod.QuadraticModel.reduce_quadratic
dimod.QuadraticModel.relabel_variables
dimod.QuadraticModel.relabel_variables_as_integers
dimod.QuadraticModel.remove_interaction
dimod.QuadraticModel.remove_variable
dimod.QuadraticModel.scale
dimod.QuadraticModel.set_linear
dimod.QuadraticModel.set_quadratic
dimod.QuadraticModel.spin_to_binary
dimod.QuadraticModel.to_file
dimod.QuadraticModel.to_polystring
dimod.QuadraticModel.update
dimod.QuadraticModel.upper_bound
dimod.QuadraticModel.vartype
dimod.DiscreteQuadraticModel.adj
dimod.DiscreteQuadraticModel.variables
dimod.DiscreteQuadraticModel.add_linear_equality_constraint
dimod.DiscreteQuadraticModel.add_variable
dimod.DiscreteQuadraticModel.copy
dimod.DiscreteQuadraticModel.energies
dimod.DiscreteQuadraticModel.energy
dimod.DiscreteQuadraticModel.from_file
dimod.DiscreteQuadraticModel.from_numpy_vectors
dimod.DiscreteQuadraticModel.get_cases
dimod.DiscreteQuadraticModel.get_linear
dimod.DiscreteQuadraticModel.get_linear_case
dimod.DiscreteQuadraticModel.get_quadratic
dimod.DiscreteQuadraticModel.get_quadratic_case
dimod.DiscreteQuadraticModel.num_cases
dimod.DiscreteQuadraticModel.num_case_interactions
dimod.DiscreteQuadraticModel.num_variable_interactions
dimod.DiscreteQuadraticModel.num_variables
dimod.DiscreteQuadraticModel.relabel_variables
dimod.DiscreteQuadraticModel.relabel_variables_as_integers
dimod.DiscreteQuadraticModel.set_linear
dimod.DiscreteQuadraticModel.set_linear_case
dimod.DiscreteQuadraticModel.set_quadratic
dimod.DiscreteQuadraticModel.set_quadratic_case
dimod.DiscreteQuadraticModel.to_file
dimod.DiscreteQuadraticModel.to_numpy_vectors
dimod.CaseLabelDQM.add_variable
dimod.CaseLabelDQM.get_cases
dimod.CaseLabelDQM.get_linear
dimod.CaseLabelDQM.get_linear_case
dimod.CaseLabelDQM.get_quadratic
dimod.CaseLabelDQM.get_quadratic_case
dimod.CaseLabelDQM.map_sample
dimod.CaseLabelDQM.set_linear
dimod.CaseLabelDQM.set_linear_case
dimod.CaseLabelDQM.set_quadratic
dimod.CaseLabelDQM.set_quadratic_case
dimod.higherorder.polynomial.BinaryPolynomial.copy
dimod.higherorder.polynomial.BinaryPolynomial.energies
dimod.higherorder.polynomial.BinaryPolynomial.energy
dimod.higherorder.polynomial.BinaryPolynomial.from_hising
dimod.higherorder.polynomial.BinaryPolynomial.from_hubo
dimod.higherorder.polynomial.BinaryPolynomial.normalize
dimod.higherorder.polynomial.BinaryPolynomial.relabel_variables
dimod.higherorder.polynomial.BinaryPolynomial.scale
dimod.higherorder.polynomial.BinaryPolynomial.to_binary
dimod.higherorder.polynomial.BinaryPolynomial.to_hising
dimod.higherorder.polynomial.BinaryPolynomial.to_hubo
dimod.higherorder.polynomial.BinaryPolynomial.to_spin
Generators and Application Modeling
Utilities
Samples
Vartype
Samplers and Composites
Variables
Exceptions
Typing
C++ API
Release Notes
Source
dwavebinarycsp
dwave-cloud-client
dwave-gate
dwave-greedy
dwave-hybrid
dwave-inspector
dwave-neal
dwave-networkx
dwave-optimization
dwave-preprocessing
dwave-samplers
dwave-system
dwave-tabu
minorminer
penaltymodel
pyqubo
Packages
Models: BQM, CQM, QM, Others
dimod.Discre...
dimod.DiscreteQuadraticModel.energy
#
DiscreteQuadraticModel.
energy
(
sample
)
[source]
#
On this page
DiscreteQuadraticModel.energy()
Show Source