DiscardInd#

qualtran.simulation.tensor.DiscardInd

Return DiscardInd in Bloq.my_tensors() to indicate an index should be discarded.

We cannot discard an index from a state-vector pure-state simulation, so any bloq that returns DiscardInd in its my_tensors method will cause an error in the ordinary tensor contraction simulator.

We can discard indices in open-system simulations by tracing out the index. When using Bloq.tensor_contract(superoperator=True), the index contained in a DiscardInd will be traced out of the superoperator tensor network.

ind_tuple

The index to trace out, of the form (cxn, j) where j addresses individual bits.

ind_tuple

 

Methods#

__ne__

Check equality and either forward a NotImplemented or return the result negated.

__eq__

Method generated by attrs for class DiscardInd.