Natural Quantum Script is a special domain programming language that aims to simplify the first contact with quantum computing for people who have prior knowledge in quantum circuits, but not in quantum software development.
Scripts written in NQS seek to visually resemble quantum circuits as much as possible. For example:
q0 q1
X
H
.--- X
c1
NQS is initially based on Qiskit, but seeks to go mainstream in the future. This is an OS project whose initial goal was to make it easier to write basic scripts in Qiskit and to bridge the gap for people who don't dare to delve into quantum computing.
- NQS is written 100% in python.
- Scripts written in NQS seek to visually resemble quantum circuits as much as possible.
Get the last version of this software here <https://github.com/PythonForChange/FilesFormat>`__
Under construction
- Enjoy!
Writting PFCF code with Pyfoch Editor
Open Pyfoch.
Write the following lines:
- q0 q1
X
H
.---X
c1
$host qasm_simulator
$hist true
$draw true- q0 q1
In "File" menu, click on "Export".
Give a name to your exported file and save.
Open the exported file.
The exported file will have the following text:
- q0 q1
X
H
.---X
c1
$host qasm_simulator
$hist true
$draw true- q0 q1
Enjoy!
Add the comma symbol to create a new line.
This is a line,This is other line
Our exported file will be something like this:
This is a line
This is other line
The heart of PFCF language is the changeability. Changeable code has a marked tendency to change.
PFCF use the changeability in order to improve the efficience in the coding development experience.
Add the "$" symbol to write a new changeability command. For example, let's say Pyfoch we want to start a new text block.
$block begin
The general sintaxis is simple:
$command parameter
Always we must write in a new line after writting a changeability command.