tket
|
Measurement that has quantum or classical successors. More...
#include <GreedyPauliOptimisation.hpp>
Public Member Functions | |
MidMeasure (std::vector< Pauli > string, bool sign, unsigned bit) | |
Construct a new Mid Measure object. | |
PauliNodeType | get_type () const override |
CommuteInfo | get_commute_info () const override |
unsigned | bit () const |
![]() | |
SingleNode (std::vector< Pauli > string, bool sign) | |
Construct a new SinglePauliNode object. | |
unsigned | tqe_cost () const override |
Number of TQEs required to reduce the weight to 1. | |
int | tqe_cost_increase (const TQE &tqe) const override |
Number of TQEs would required to reduce the weight to 1 after the given TQE is applied. | |
void | update (const TQE &tqe) override |
Update the Pauli string with a TQE gate. | |
std::vector< TQE > | reduction_tqes () const override |
Return all possible TQE gates that will reduce the tqe cost by 1. | |
std::pair< unsigned, Pauli > | first_support () const |
Return the index and value of the first non-identity. | |
bool | sign () const |
const std::vector< Pauli > & | string () const |
![]() | |
virtual void | update (const OpType &sq_cliff, const unsigned &a) |
virtual void | swap (const unsigned &a, const unsigned &b) |
virtual | ~PauliNode () |
Protected Attributes | |
const unsigned | bit_ |
![]() | |
std::vector< Pauli > | string_ |
bool | sign_ |
unsigned | weight_ |
Measurement that has quantum or classical successors.
Definition at line 344 of file GreedyPauliOptimisation.hpp.
tket::Transforms::GreedyPauliSimp::MidMeasure::MidMeasure | ( | std::vector< Pauli > | string, |
bool | sign, | ||
unsigned | bit | ||
) |
Construct a new Mid Measure object.
string | dense Pauli string |
sign | the sign of the Pauli string |
bit | readout bit |
Definition at line 404 of file GreedyPauliOps.cpp.
|
inline |
Definition at line 357 of file GreedyPauliOptimisation.hpp.
|
overridevirtual |
Implements tket::Transforms::GreedyPauliSimp::PauliNode.
Definition at line 407 of file GreedyPauliOps.cpp.
|
inlineoverridevirtual |
Implements tket::Transforms::GreedyPauliSimp::PauliNode.
Definition at line 355 of file GreedyPauliOptimisation.hpp.
|
protected |
Definition at line 360 of file GreedyPauliOptimisation.hpp.