tket
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
tket::Transforms::GreedyPauliSimp::MidMeasure Class Reference

Measurement that has quantum or classical successors. More...

#include <GreedyPauliOptimisation.hpp>

Inheritance diagram for tket::Transforms::GreedyPauliSimp::MidMeasure:
Inheritance graph
[legend]
Collaboration diagram for tket::Transforms::GreedyPauliSimp::MidMeasure:
Collaboration graph
[legend]

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
 
- Public Member Functions inherited from tket::Transforms::GreedyPauliSimp::SingleNode
 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< TQEreduction_tqes () const override
 Return all possible TQE gates that will reduce the tqe cost by 1.
 
std::pair< unsigned, Paulifirst_support () const
 Return the index and value of the first non-identity.
 
bool sign () const
 
const std::vector< Pauli > & string () const
 
- Public Member Functions inherited from tket::Transforms::GreedyPauliSimp::PauliNode
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_
 
- Protected Attributes inherited from tket::Transforms::GreedyPauliSimp::SingleNode
std::vector< Paulistring_
 
bool sign_
 
unsigned weight_
 

Detailed Description

Measurement that has quantum or classical successors.

Definition at line 344 of file GreedyPauliOptimisation.hpp.

Constructor & Destructor Documentation

◆ MidMeasure()

tket::Transforms::GreedyPauliSimp::MidMeasure::MidMeasure ( std::vector< Pauli string,
bool  sign,
unsigned  bit 
)

Construct a new Mid Measure object.

Parameters
stringdense Pauli string
signthe sign of the Pauli string
bitreadout bit

Definition at line 404 of file GreedyPauliOps.cpp.

Member Function Documentation

◆ bit()

unsigned tket::Transforms::GreedyPauliSimp::MidMeasure::bit ( ) const
inline

Definition at line 357 of file GreedyPauliOptimisation.hpp.

◆ get_commute_info()

CommuteInfo tket::Transforms::GreedyPauliSimp::MidMeasure::get_commute_info ( ) const
overridevirtual

Implements tket::Transforms::GreedyPauliSimp::PauliNode.

Definition at line 407 of file GreedyPauliOps.cpp.

◆ get_type()

PauliNodeType tket::Transforms::GreedyPauliSimp::MidMeasure::get_type ( ) const
inlineoverridevirtual

Member Data Documentation

◆ bit_

const unsigned tket::Transforms::GreedyPauliSimp::MidMeasure::bit_
protected

Definition at line 360 of file GreedyPauliOptimisation.hpp.


The documentation for this class was generated from the following files: