GroverResult

class GroverResult(a_dict=None)[source]

Grover Result.

Attributes

GroverResult.assignment

return assignment

GroverResult.circuit

return circuit

GroverResult.measurement

returns measurement

GroverResult.oracle_evaluation

return oracle evaluation

GroverResult.top_measurement

return top measurement

Methods

GroverResult.__getitem__(key)

rtype

object

GroverResult.__len__()

GroverResult.clear()

rtype

None

GroverResult.combine(result)

Any property from the argument that exists in the receiver is updated.

GroverResult.copy()

GroverResult.from_dict(a_dict)

create new object from a dictionary

GroverResult.fromkeys(iterable[, value])

GroverResult.get(k[,d])

GroverResult.items()

GroverResult.keys()

GroverResult.pop(key[, default])

If key is not found, d is returned if given, otherwise KeyError is raised.

GroverResult.popitem()

as a 2-tuple; but raise KeyError if D is empty.

GroverResult.setdefault(k[,d])

GroverResult.update(*args, **kwargs)

If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v

GroverResult.values()

GroverResult.__len__()