Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge
swh:1:cnt:16a9c798b6609bde8705b9b4730f056f06148ba4

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
(requires biblatex-software package)
Generating citation ...
-------QASM Generation Pass:

module ToffoliImpl_Q_Q_Q(qbit control1, qbit control2, qbit target){
 	H ( target );
 	T ( control1 );
 	T ( control2 );
 	T ( target );
 	CNOT ( control2 , control1 );
 	CNOT ( target , control2 );
 	CNOT ( control1 , target );
 	Tdag ( control2 );
 	T ( target );
 	CNOT ( control1 , control2 );
 	Tdag ( control1 );
 	Tdag ( control2 );
 	CNOT ( target , control2 );
 	CNOT ( control1 , target );
 	CNOT ( control2 , control1 );
 	H ( target );
 }

module main(){
 	qbit q[3];
	cbit c[1];
	X ( q[0] );
 	Y ( q[0] );
 	Z ( q[0] );
 	H ( q[0] );
 	T ( q[0] );
 	S ( q[0] );
 	Tdag ( q[0] );
 	Sdag ( q[0] );
 	Rx ( q[0] , 3.141590e+00 );
 	Ry ( q[0] , 3.141590e+00 );
 	Rz ( q[0] , 3.141590e+00 );
 	PrepX ( q[0] , 0 );
 	PrepZ ( q[0] , 0 );
 	c[0] = MeasX ( q[0] );
 	c[0] = MeasZ ( q[0] );
 	CNOT ( q[0] , q[1] );
 	ToffoliImpl_Q_Q_Q ( q[0] , q[1] , q[2] );
 	Fredkin ( q[0] , q[1] , q[2] );
 }

--------End of QASM generation

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API