Measure

Contents

Measure#

class discopy.quantum.gates.Measure(name=None, dom=None, cod=None, data=None, *args, **kwargs)[source]#

Bases: SelfConjugate

Measure n qubits into n bits.

Parameters:
  • n_qubits (int) – Number of qubits to measure.

  • destructive (bool, optional) – Whether to do a non-destructive measurement instead.

  • override_bits (bool, optional) – Whether to override input bits, this is the standard behaviour of tket.