Skip to content

qiskit-community/qiskit-human-eval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

qiskit-humaneval

In this repository you will find qiskit-humaneval a dataset for evaluating LLM's at writing Qiskit code.

Dataset

The Qiskit HumanEval dataset is inspired by OpenAI's HumanEval. It includes 151 Qiskit problems written by human Qiskit advocates.

We provide two versions of the dataset:

  • In qiskit_humaneval the prompt includes import statements, function header and signature, and a doctring with the problem to solve. For example, sample 1:
from qiskit import QuantumCircuit
def create_quantum_circuit(n_qubits):
    """ Generate a Quantum Circuit for the given int 'n_qubits' and return it.
    """
  • In qiskit_humaneval_hard the prompt only includes the problem statement and the model is asked to create a function answering the problem. This is much harder for the LLM as the imports are not provided. For example, sample 1:
Generate a Quantum Circuit for the given int 'n_qubits' and return it.
You must implement this using a function named `create_quantum_circuit` with the following arguments: n_qubits.

Contribution Guidelines

If you'd like to contribute to the Qiskit HumanEval, please take a look at our contribution guidelines. By participating, you are expected to uphold our code of conduct.

Terms of use

License

Apache License 2.0

About

qiskit-humaneval is a dataset for evaluating LLM's at writing Qiskit code.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 8