Skip to main content

Table 2 Quantitative analysis between usage examples in Qiskit and PennyLane. The line count excludes empty lines and comments

From: Advantages of two quantum programming platforms in quantum computing and quantum chemistry

Usage example

Programming language

Line count

Number of imported library

Half adder

Qiskit

14

1

PennyLane

18 (qiskit format) 12 (expected value)

1

Machine learning

Qiskit

45

6

PennyLane

48

5

  1. If multiple modules in the same library are separately imported in different lines, we only count as 1 library