tqec.circuit.measurement#

Defines two classes to represent measurements in a quantum circuit.

This module defines Measurement to represent a unique measurement in a quantum circuit and RepeatedMeasurement to represent a unique measurement within a REPEAT instruction in a quantum circuit.

Functions

get_measurements_from_circuit(circuit)

Get all the measurements found in the provided circuit.

Classes

AbstractMeasurement()

Measurement(qubit, offset)

A unique representation for each measurement in a quantum circuit.

RepeatedMeasurement(qubit, offsets)

A unique representation for a repeated measurement in a quantum circuit.