interpreter.gate package

class interpreter.gate.GateBasedInterpreter

Bases: Interpreter

Gate-based interpreter. Used to check correctness.

run(qc: QuantumCircuit, num_shots=1024) dict

Run the circuit in gate-based platform.

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