OpenQASM

Comments Off on OpenQASM

OPENQASM 2.0;
include "qelib1.inc";

qreg q[1];
creg c[1];

h q[0];
cx q[0], q[0];
measure q[0] -> c[0];

println("Hello World!");

Explanation: This program initializes a single qubit (qreg q[1]) and a single classical bit register (creg c[1]). It applies the Hadamard gate (h) to the qubit, followed by a controlled-NOT (cx) gate with the same qubit as control and target. Finally, it measures the qubit and prints “Hello World!” to the output. Note that the “println” function is not a part of the OpenQASM standard but is provided here for demonstration purposes only. In reality, you would need a quantum simulator or hardware to execute this program and observe the results.

Prompt
beautiful woman, in full height, great body, gorgeous figure, beautiful face, learns OpenQASM programming language, beautiful background, magnificent scenery, colorful, very detailed, HD, highly detailed, sharp focus, stunningly beautiful, hyper-detailed, HDR+, 16K, Mandola art style, complex, circular design, mandola

Negative prompt
(worst quality, low quality, normal quality, lowres, low details, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art:1.4), (watermark, signature, text font, username, error, logo, words, letters, digits, autograph, trademark, name:1.2), ziprealism_neg, verybadimagenegative, bad_prompt_version2-neg, easynegative, FastNegativeV2, ugly, deformed, noisy, blurry, low contrast, extra eyes, huge eyes, bad eyes, ugly eyes, oversized eyes, imperfect eyes, deformed pupils, deformed iris, cross-eyed, poorly drawn face, bad face, fused face, ugly face, worst face, asymmetrical, unrealistic skin texture, bad proportions, out of frame, poorly drawn hands, cloned face, double face, low quality, low res, blurry, bad quality

Text model: toppy

Image model: WildCardXXLAnimation