interpreter.tensor package

class interpreter.tensor.TensorInterpreter(eps: float | None = None)

Bases: Interpreter

The interpreter built based on tensor network from this paper: https://arxiv.org/abs/2309.16475.

Parameters:

eps (float, optional) – noise factor, can heavily affect the translation. Defaults to None to disable customized noise.

run(qc: QuantumCircuit, num_shots=1024, all_histories=False) dict

Convert (if defined) and run the circuit.

Parameters:
  • qc (QuantumCircuit) – Quantum circuit to run.

  • num_shots (int, optional) – Number of shots to run the circuit for. Defaults to 1024.

Returns:

Results after running the circuit.

Return type:

dict