Hello world!

自分で調べる🎵

シェルスクリプトの場合

# !/bin/bash
echo 'Hello World!'

Quiskitの場合

おいおいで

from qiskit import QuantumCircuit
from qiskit.quantum_info import SparsePauliOp
from qiskit.transpiler import generate_preset_pass_manager
from qiskit_ibm_runtime import EstimatorV2 as Estimator
 
# Create a new circuit with two qubits
qc = QuantumCircuit(2)
 
# Add a Hadamard gate to qubit 0
qc.h(0)
 
# Perform a controlled-X gate on qubit 1, controlled by qubit 0
qc.cx(0, 1)
 
# Return a drawing of the circuit using MatPlotLib ("mpl").
# These guides are written by using Jupyter notebooks, which
# display the output of the last line of each cell.
# If you're running this in a script, use `print(qc.draw())` to
# print a text drawing.
qc.draw("mpl")
Hello world | IBM Quantum Documentation
Get started using Qiskit with IBM Quantum hardware in this Hello World example

Haskellの場合

main = putStrLn "Hello World"

Unityの場合

Unityでスクリプトを作成し、Hello, Worldを表示する - Qiita
やりたいことUnity上で実行ボタンを押すと、Hello, Worldが表示されるスクリプトを作成します。Unityの画面構成、マウス操作、C#の基本などは以下の投稿を参考にしてください。Un…
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class test : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("Hello, World");
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}

できた!

コメント

タイトルとURLをコピーしました