Qiskit

Qiskit
Edit nilai pada Wikidata
TipeKerangka kerja dan Pustaka Python Edit nilai pada Wikidata
Versi pertama7 Maret 2017; 7 tahun lalu (2017-03-07).[1]
Versi stabil
0.44.0 (27 Juli 2023) Edit nilai pada Wikidata
LisensiApache License 2.0[2]
Karakteristik teknis
Bahasa pemrogramanPython dan Rust Edit nilai pada Wikidata
Informasi pengembang
PembuatIBM Research (en) Terjemahkan Edit nilai pada Wikidata
PengembangIBM Research, komunitas Qiskit
Sumber kode
Informasi tambahan
Situs webqiskit.org
Stack ExchangeEtiqueta Edit nilai pada Wikidata
X: Qiskit Youtube: UClBNq7mCMf5xm8baE_VMl3A Modifica els identificadors a Wikidata
Sunting di Wikidata Sunting di Wikidata • Sunting kotak info • L • B
Info templat
Bantuan penggunaan templat ini

Qiskit adalah sebuah kit pengembangan perangkat lunak (bahasa Inggris: software development kit atau SDK) sumber terbuka untuk digunakan dengan komputer kuantum pada tingkat rangkaian, pulsa, dan algoritma. SDK ini menyediakan peralatan untuk menciptakan dan memanipulasi program kuantum, lalu menjalankannya di perangkat kuantum prototipe pada IBM Quantum Experience atau pada simulator dalam suatu komputer lokal. Ia mengikuti model sirkuit untuk komputasi kuantum universal, dan dapat digunakan untuk sembarang hardware kuantum yang mendukung model ini.

Qiskit diinisiasi oleh IBM Research untuk memungkinkan pengembangan software bagi layanan komputasi kuantum awannya, IBM Quantum Experience.[4]

Versi utama Qiskit menggunakan bahasa pemrograman Python. Versi Swift dan JavaScript awalnya telah dieksplorasi, meski perkembangan versi tersebut telah berhenti.[5][6]

Contoh kode

Berikut merupakan contoh yang memuat keseluruhan alur kerja, yang terdiri dari 4 tahap tingkat tinggi: Build, Compile, Run, dan Analyze.[7]

import numpy as np
from qiskit import QuantumCircuit, transpile
from qiskit.providers.aer import QasmSimulator
from qiskit.visualization import plot_histogram

# Use Aer's qasm_simulator
simulator = QasmSimulator()

# Create a Quantum Circuit acting on the q register
circuit = QuantumCircuit(2, 2)

# Add a H gate on qubit 0
circuit.h(0)

# Add a CX (CNOT) gate on control qubit 0 and target qubit 1
circuit.cx(0, 1)

# Map the quantum measurement to the classical bits
circuit.measure([0,1], [0,1])

# compile the circuit down to low-level QASM instructions
# supported by the backend (not needed for simple circuits)
compiled_circuit = transpile(circuit, simulator)

# Execute the circuit on the qasm simulator
job = simulator.run(compiled_circuit, shots=1000)

# Grab results from the job
result = job.result()

# Returns counts
counts = result.get_counts(compiled_circuit)
print("\nTotal count for 00 and 11 are:",counts)

# Draw the circuit
circuit.draw()
Visualisasi sirkuit kuantum oleh metode pada baris ke-36.

Keluaran atau output-nya:

Total count for 00 and 11 are: {'00': 505, '11': 495}

Lihat pula

Pranala luar

Referensi

  1. ^ Jay M. Gambetta; Andrew Cross (27 Maret 2018). "Looking back on a year of Qiskit". Medium. Diakses tanggal 24 September 2019. 
  2. ^ "qiskit/LICENSE.txt at master · Qiskit/qiskit · GitHub". GitHub. Diakses tanggal 24 Maret 2023. 
  3. ^ "Qiskit - Release Notes • Version History". qiskit.org. Diakses tanggal 18 Maret 2023. 
  4. ^ Hemsoth, Nicole (7 Agustus 2018). "QISKit Developments Key to IBM Quantum Engagement". The Next Platform (dalam bahasa Inggris). Diakses tanggal 18 Maret 2023. 
  5. ^ Quantum Information Science Kit (QISKit), 16 Januari 2023, diakses tanggal 18 Maret 2023 
  6. ^ "Qiskit (Quantum Information Science Kit) for JavaScript". GitHub. Diakses tanggal 18 Maret 2023. 
  7. ^ "Introduction to Qiskit". qiskit.org (dalam bahasa Inggris). Diakses tanggal 24 Maret 2023. 

Read other articles:

Dzerzhinsk ДзержинскKota Lambang kebesaranLokasi Dzerzhinsk DzerzhinskLokasi DzerzhinskTampilkan peta RusiaDzerzhinskDzerzhinsk (Rusia)Tampilkan peta RusiaKoordinat: 56°14′N 43°27′E / 56.233°N 43.450°E / 56.233; 43.450Koordinat: 56°14′N 43°27′E / 56.233°N 43.450°E / 56.233; 43.450NegaraRusiaSubjek federalOblast Nizhny Novgorod[1]Disebutkan pertama kali1606Pemerintahan • WalikotaIvan Noskov[2]K...

 

العلاقات الأوكرانية المارشالية أوكرانيا جزر مارشال   أوكرانيا   جزر مارشال تعديل مصدري - تعديل   العلاقات الأوكرانية المارشالية هي العلاقات الثنائية التي تجمع بين أوكرانيا وجزر مارشال.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية ...

 

Chronologie de la France ◄◄ 1663 1664 1665 1666 1667 1668 1669 1670 1671 ►► Chronologies Avril : Ordonnance de Saint-Germain-en-Laye sur la réformation de la justice civileDonnées clés 1664 1665 1666  1667  1668 1669 1670Décennies :1630 1640 1650  1660  1670 1680 1690Siècles :XVe XVIe  XVIIe  XVIIIe XIXeMillénaires :-Ier Ier  IIe  IIIe Chronologies thématiques Art Architecture, Arts plastiques (Dessin, Gravure, Peintu...

2010 California State Treasurer election ← 2006 November 2, 2010 2014 →   Nominee Bill Lockyer Mimi Walters Party Democratic Republican Popular vote 5,433,222 3,479,709 Percentage 56.5% 36.2% County results Lockyer:      40–50%      50–60%      60–70%      70–80% Walters:      40–50%      50–60%  ...

 

Enzo Tiezzi Deputato della Repubblica ItalianaLegislaturaX GruppoparlamentareSinistra Indipendente Dati generaliTitolo di studiolaurea in chimica Professionedocente universitario Enzo Tiezzi (Siena, 4 febbraio 1938 – Siena, 25 giugno 2010) è stato un chimico, politico e ambientalista italiano. Indice 1 Biografia 1.1 La carriera accademica e la fine 1.2 Attività scientifica e pubblicistica 2 La sacralità della vita e la contrarietà alla fecondazione assistita 3 Attività politi...

 

Untuk kegunaan lain, lihat Lombok dan Lombok (disambiguasi). Kabupaten Lombok TimurKabupatenDari atas, kiri ke kanan; Danau Segara Anak; Gunung Rinjani; Pohon raksasa Lian; Kantor Bupati; Tradisi Peresean LambangMotto: Patuh karyaPetaKabupaten Lombok TimurPetaTampilkan peta Kepulauan Sunda KecilKabupaten Lombok TimurKabupaten Lombok Timur (Indonesia)Tampilkan peta IndonesiaKoordinat: 8°39′S 116°32′E / 8.65°S 116.53°E / -8.65; 116.53Negara IndonesiaPro...

« Petrucciani » redirige ici. Pour les autres significations, voir Petrucciani (homonymie). Pour les articles homonymes, voir Michel Petrucciani (album) et Michel Petrucciani (film). Michel PetruccianiBiographieNaissance 28 décembre 1962OrangeDécès 6 janvier 1999 (à 36 ans)New YorkSépulture Cimetière du Père-Lachaise, Grave of Petrucciani (d)Nom de naissance Michel Antoine PetruccianiNationalité françaiseActivités Pianiste de jazz, compositeur, artiste d'enregistre...

 

Extinct Turkic tribal confederation Not to be confused with Bulgarians or Bulgarian Turks. Bulgars led by Khan Krum pursue the Byzantines at the Battle of Versinikia (813) The Bulgars (also Bulghars, Bulgari, Bolgars, Bolghars, Bolgari,[1] Proto-Bulgarians[2]) were Turkic semi-nomadic warrior tribes that flourished in the Pontic–Caspian steppe and the Volga region during the 5th[3]-7th century. They became known as nomadic equestrians in the Volga-Ural region, but so...

 

Ethnic group and minority in New York City For African Americans in the state, see African Americans in New York. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: African Americans in New York City – news · newspapers · books · scholar · JSTOR (August 2022) (Learn how and when to remove this message) Black Ne...

هذه مقالة غير مراجعة. ينبغي أن يزال هذا القالب بعد أن يراجعها محرر؛ إذا لزم الأمر فيجب أن توسم المقالة بقوالب الصيانة المناسبة. يمكن أيضاً تقديم طلب لمراجعة المقالة في الصفحة المخصصة لذلك. (أكتوبر 2020) يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه الم...

 

Quarter in Hamburg, Germany Quarter of Hamburg in GermanyHohenfelde Quarter of Hamburg Location of Hohenfelde in Hamburg Hohenfelde Show map of GermanyHohenfelde Show map of HamburgCoordinates: 53°33′40″N 10°01′16″E / 53.561°N 10.021°E / 53.561; 10.021CountryGermanyStateHamburgCityHamburg BoroughHamburg-Nord Area • Total1.1 km2 (0.4 sq mi)Population (2020-12-31)[1] • Total9,853 • Density9,000/k...

 

Black Knight: The Man Who Guards MePoster promosiJudul asli흑기사 GenreFantasiRomansaPembuatProduksi drama KBSDitulis olehKim In-yeongSutradaraHan Sang-wooPemeranKim Rae-wonShin Se-kyungSeo Ji-hyeNegara asalKorea SelatanBahasa asliKoreaJmlh. episode16ProduksiProduser eksekutifJung Chang-hwanKang Byung-taekPengaturan kameraSingle-cameraDurasi60 minsRumah produksin.CH EntRilis asliFormat gambar1080i (HDTV)Format audioDolby DigitalRilis6 Desember 2017 (2017-12-06) Black Knight: The Man ...

Italian journalist and historian (1909–2001) This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Indro Montanelli – news · newspapers · books · scholar · JST...

 

2015 single by Wale featuring UsherThe MatrimonySingle by Wale featuring Usherfrom the album The Album About Nothing ReleasedMarch 2, 2015Recorded2015Genre Hip hop R&B Length6:354:14 (radio edit)Label Maybach Music Group Allido Atlantic Songwriter(s) Olubowale Akintimehin Usher Raymond IV Sam Dew Jacob Dutton Daniel Tannenbaum Khalil Abdul-Rahman Charlie B Producer(s) Jake One DJ Khalil Marcè Reazon Wale singles chronology Ride Out (2015) The Matrimony (2015) Coffee (2015) Usher ...

 

Venetian bombardments of the Beylik of TunisPart of the European conflicts with the Barbary statesA contemporary sketch of the bombardments in 1784DateJune 1784 – 1786LocationPorto Farina, Tunis, Sfax, Bizerte, SousseResult Tunisian victoryBelligerents  Venice Beylik of TunisCommanders and leaders Angelo Emo Querini Tommaso Condulmer Hammuda ibn AliStrength Various tall ships 2 bomb ketches 9 bomb rafts Coastal defences Naval batteries Several ships The Venetian bombardments of th...

Questa voce sull'argomento province della Turchia è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Provincia di AydınprovinciaAydın ili LocalizzazioneStato Turchia RegioneEgeo AmministrazioneCapoluogoAydın TerritorioCoordinatedel capoluogo37°51′00″N 27°50′36″E37°51′00″N, 27°50′36″E (Provincia di Aydın) Superficie8 007 km² Abitanti1 097 746 (2018) Densità137,1 ab./km² Altre informazioniCod. postale09...

 

الاتحاد الألماني لكرة القدم (بالألمانية: Deutsche Fußball-Bund e. V.)‏[1]  الاتحاد الألماني لكرة القدم الاسم المختصر DFB الرياضة كرة القدم أسس عام 1900 (منذ 124 سنة) الرئيس فريتز كيلر المقر فرانكفورت، ألمانيا الانتسابات الفيفا : 1904 اليويفا : 1954 النوادي 25,726 نادي الموقع الرسمي www.dfb...

 

Non-metropolitan district and Borough in EnglandBorough of WaverleyNon-metropolitan district and BoroughWaverley Abbey, after which the borough is named.Motto(s): Oppida Rusque Una(Latin: Town and countryside in unity)Waverley shown within SurreySovereign stateUnited KingdomConstituent countryEnglandRegionSouth East EnglandNon-metropolitan countySurreyStatusNon-metropolitan districtAdmin HQGodalmingIncorporated1 April 1974Government • TypeNon-metropolitan district council...

This article's lead section may be too short to adequately summarize the key points. Please consider expanding the lead to provide an accessible overview of all important aspects of the article. (May 2022) Sports season2008–09 CEV Women's Champions LeagueLeagueCEV Women's Champions LeagueSportVolleyballFinals champions Volley Bergamo  Runners-up Dynamo MoscowFinals MVP Serena Ortolani (Volley Bergamo)CEV Women's Champions League seasons← 2007–082009–10 → The 2008...

 

Dutch noble family Van (de) Renessenoble familyCountry Holy Roman Empire County of Zeeland Dutch Republic Batavian Republic Kingdom of Holland First French Empire Sovereign Principality of the United Netherlands United Kingdom of the Netherlands Belgium TitlesLords of RenesseLords of EveringenLords of BaarlandLords of RhijnauwenLords of GaesbeecqLords of ElderenCounts of WarfuséeViscounts of MontigniesEstate(s)Renesse CastleCastle of WarfuséeCastle EllewoutsdijkCastle HellenburgCadet branch...